-
6 votesanswersviews
为什么这个简单的Qt应用程序没有链接
我试着像这样编写一个简单的Qt应用程序: main.cpp中: #include <QApplication> class MyApp : public QApplication { Q_OBJECT public: MyApp(int argc, char* argv[]); }; MyApp::MyApp(int argc, char* argv... -
1 votesanswersviews
Qt中的多级继承
我正在尝试为我的Qt页面实现多级继承 . class MyPage1: public QWizardPage { Q_OBJECT ... } and class MyPage2: public MyPage1 { Q_OBJECT ... } moc_MyPage2.cc为空,在链接时我收到错误: 错误LNK2001:未解析的外部符号“public:virtual struc...