I have QThread inherited class and when i add a Q_OBJECT macro, it gives unresolved external error. (I've included QObject and QThread).
class TCustomThread: public QThread { Q_OBJECT public: explicit TCustomThread(QObject *parent=0); public slots: void testSlot(); } How can i solve this issue?