Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Signals and slots are available only in QObject derived classes, and a Q_OBJECT macro is needed.
QObject
Q_OBJECT
class Emiter : public QObject { Q_OBJECT public: signals: void anSignal (); };
For more detail answer: click here
class Emiter : QObject { Q_OBJECT public: signals: void anSignal (); };
signalSignals and slot avilableslots are available only QObject class. You needin QObject derived classes, and a Q_OBJECTQ_OBJECT macro is needed.
signal and slot avilable only QObject class. You need a Q_OBJECT macro.
signal and slot avilable only QObject class. You need a Q_OBJECT macrosmacro.
signal and slot avilable only QObject class. You need a Q_OBJECT macros