InstrumentNotifier: any reason to inherit from QObject? To have Q_OBJECT?
Why does class InstrumentNotifier
inherit from QObject
? Why does it have macro Q_OBJECT
?
Why does class InstrumentNotifier
inherit from QObject
? Why does it have macro Q_OBJECT
?
assigned to @j.wuttke
The Q_OBJECT macro must appear in the private section of a class definition that declares its own signals and slots or that uses other services provided by Qt's meta-object system.
mentioned in merge request !1447 (merged)
mentioned in commit bb2872dd
Inheritance from QObject is needed when the connect
function is called for any class member function.
The macro Q_OBJECT
is only needed if the class contains signals, or slots, or involves a .ui file.
Resolced by !1447 (merged).
closed