Hello,
when I inherit from a Qt class I generally struct the class like this:
Qt Code:
{ Q_OBJECT public: MyClass(); private: QPushButton *okBtn; //.... };To copy to clipboard, switch view to plain text mode
But on some classes I get the error:
undefined reference to `vtable for MyClass'
I don't know why Q_OBJECT sometimes works for my classes and sometimes not.


Reply With Quote

Bookmarks