Thanks it works... :P
i feel like dumb![]()
Thanks it works... :P
i feel like dumb![]()
You don't intend for these to be slots, do you? Why are they included in the slots declaration of your class?virtual bool notify(QObject *receiver, QEvent *event);
virtual bool event (QEvent * e);
I've had the same problem today I've solved implementing explicitly a destructor... an empty one does the trick too!
Then the 'vtable' it was defined again... whatever it is!
I have really the G++ errors they simply means nothing...
The vtable error is typical artifact when a Q_OBJECT marker is added to a header that did not contain it at the time the header was added to the project.
All headers with that marker need to be processed by MOC, when a header is added to the .pro file then it is checked for whether this is necessary.
If the header at this time does not contain the marker yet, no MOC rule is generated. Adding the marker afterwards thus leaves the file only temporarily processed.
Re-running qmake (either manually or though QtCreator's build menu) will always fix that.
Generally it is most easily avoided by always putting the Q_OBJECT marker into classes directly or indirectly derived from QObject.
Cheers,
_
rawfool (10th May 2013)
Bookmarks