QT 报错:“‘QMainWindow’ file not found" 解决方法: 在.pro中加入 QT +=core gui greaterThan(QT_MAJOR_VERSION,4):QT+=widgets