The Qt Meta Object Compiler needs the class definition in a header. It generates a source file from this header that will map the signals in your class to the slots you connect them to.
Also, you have to add the Q_OBJECT macro to your class definition.
I hope this helps.
Regards,
Marcel.
Bookmarks