大家知道为什么新建的项目里会这样吗?这是在ubuntu下的,运行的时候是可以运行没有问题的
unbuntu上可以运行,但是出现了这两个问题qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no,问题里会显示home/xuzihan/QT/untitled8/main.cpp:8: error: unknown type name 'MainWindow',/home/xuzihan/QT/untitled8/main.cpp:7: error: variable has incomplete type 'QApplication'
h头文件里显示出现了5个问题,/home/xuzihan/QT/untitled8/mainwindow.h:10: error: expected class name /home/xuzihan/QT/untitled8/mainwindow.h:12: error: incomplete result type 'QString' in function definition /home/xuzihan/QT/untitled8/mainwindow.h:12: error: calling 'tr' with incomplete return type 'QString' /home/xuzihan/QT/untitled8/mainwindow.h:12: error: incomplete result type 'QString' in function definition /home/xuzihan/QT/untitled8/mainwindow.h:12: error: calling 'tr' with incomplete return type 'QString'