greaterThan(QT_MAJOR_VERSION,4): QT += widgets - does not help QT += widgets - does not help INCLUDEPATH += /opt/Qt/5.3/Src/qtbase/include/ - does not help
Qt 5.3. Ubuntu 14.04 x64.
>已安装模块> greaterThan(QT_MAJOR_VERSION,4):QT =小部件>你重新运行Qt 5 qmake.
话虽如此,我想提醒您,包括整个模块并不是一个好主意,因为它包含所有与小部件相关的内容.尝试将其缩小到您真正需要的标题.