Say I have a QObject subclass Foo defined in C++:
QObject
Foo
class Foo : public QObject { Q_OBJECT public: /* ... */ };