I am trying to implement multilevel inheritance for my Qt pages.
class MyPage1: public QWizardPage {
Q_OBJECT
...
}
and
class MyPage2: public MyPage1 {
Q_OBJECT
...
}
The moc_MyPage2.cc is empty and while linking I am getting an error:
error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall dsw::MyPage2::metaObject(void)const " (?metaObject@MyPage2@dsw@@UBEPBUQMetaObject@@XZ)
Can someone please guide me?