Why is Qt looking for my slot in the base class instead of derived one ?
Why is Qt looking for my slot in the base class instead of derived one ?
Slot in the base class instead of derived one:
Although by adding the Q_OBJECT macro on the derived class.
qt irc carrier:
- The Q_OBJECT macro is present in the definition of all QObject-derived classes.
- They declared the QObject-derived classes in the header files ONLY.
- The header files are listed in the .pro file in the HEADERS= list.
- The Run qmake iun a time to add Q_OBJECT in one of the classes or update the .pro file.