error: QApplication: No such file or directory #include “QApplication” 解决方法 : 在工程*.pro文件中添加: greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 相关文章: 2021-10-07 2021-12-20 2022-12-23 1970-01-01 2022-12-23 2021-07-16 2021-09-01