1 2 3 4 5 6 7 8 9 10
#include <QObject> class MyObject : public QObject { Q_OBJECT public: void func(); };