Qt 5 error: C1083: 无法打开包括文件: “Qdialog”: No such file or directory

版权声明:github博客地址https://ryanlee0129.github.io/wtf-blog/ 引用请注明 https://blog.csdn.net/u013288800/article/details/82588383

Qt5的GUI模块变动了,所有的QWidget都被剥离出来,单独成为qtwidgets模块
所以pro里QT+=里要有个qtwidgets
然后清理项目
在构建菜单下重新执行qmake
构建
执行

猜你喜欢

转载自blog.csdn.net/u013288800/article/details/82588383