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 ?

Asked on January 8, 2019 in Qt.
Add Comment


  • 2 Answer(s)

    Slot in the base class instead of derived one:

               Although by adding  the Q_OBJECT macro on the derived class.

    Answered on January 8, 2019.
    Add Comment

    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.
    Answered on January 8, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.