构建项目时提示"QApplication:no such file or directory"

解决这种错误最直接有效的方法就是在.pro文件中添加:  QT += widgets

原文地址:https://www.cnblogs.com/SaveDictator/p/7745991.html