Warning, /sdk/clazy/docs/checks/README-missing-qobject-macro.md is written in an unsupported language. File is not indexed.

0001 # missing-qobject-macro
0002 
0003 Finds `QObject` derived classes that don't have a Q_OBJECT macro.
0004 
0005 #### Reasons to use Q_OBJECT
0006 - Signals and slots
0007 - `QObject::inherits`
0008 - `qobject_cast`
0009 - `metaObject()->className()`
0010 - Use your custom widget as a selector in Qt stylesheets
0011 
0012 #### Reasons not to use Q_OBJECT
0013 - Templated QObjects
0014 - Compilation time
0015 
0016 This check can't be used with pre-compiled headers support.
0017 This check doesn't have false positives, but it's not included in level <= 1 because the missing Q_OBJECT might be intentional.