Qt 5.3. QtWidgets: No such file or directory #include <QtWidgets>
问题 I want to compile Qt example. I get error QtWidgets: No such file or directory #include 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. 回答1: You need to double check that you completed all these steps: Module installed greaterThan(QT_MAJOR_VERSION, 4): QT += widgets You re-run the Qt 5 qmake. Having said that, I would like to remind you that including the