PDA

View Full Version : SIGNALS in Inherit Classes



^NyAw^
27th November 2006, 15:40
Hi,
I'm not able to define SIGNALS in inherit classes. I have defined the macro Q_OBJECT, and the class is inherithed from other class that inherits QObject.

Have I to define the SIGNALS in the base class? This is the only way that works.

There is no problem defining them on the base class but I would like to define them into the inherited class.

Thanks,

jpn
27th November 2006, 15:50
How are you not able? What's the error?

Is the class declaration in a separate header file? Have you re-run qmake after adding the Q_OBJECT macro?
Edit: also, make sure the header is listed in HEADERS in .pro file.

^NyAw^
27th November 2006, 16:06
Oh, sorry, I have not added the macro Q_OBJECT in the inherited classes, I think that I wrote it, ... :rolleyes:

Thanks,