Warning, /sdk/clazy/docs/checks/README-old-style-connect.md is written in an unsupported language. File is not indexed.

0001 # old-style-connect
0002 
0003 Finds usages of old style connects.
0004 Connecting with old style syntax (`SIGNAL`/`SLOT`) is much slower than using pointer to member syntax (PMF).
0005 
0006 Here's however a non-exhaustive list of caveats you should be aware of:
0007 - You can't disconnect with new-syntax if the connect was made with old-syntax (and vice-versa)
0008 - You can't disconnect from a static slot with new-syntax (although connecting works)
0009 - Difference in behaviour when calling slots of partially destroyed objects (<https://codereview.qt-project.org/#/c/83800>)
0010 
0011 #### Fixits
0012 
0013 This check supports a fixit to rewrite your code to the new connect syntax. See the README.md on how to enable it.
0014 Be careful, as PMF is not a 100% drop-in replacement and the fixit might introduce bugs.
0015 
0016 #### Pitfalls
0017 
0018 Although this check doesn't have false-positives it's a level2 check, that's because some connects are tricky to convert to PMF syntax and might introduce bugs if you don't know what you're doing.