【环境背景】:Windows10+Vs2015+Qt5.9.0
1【可能遇到的问题1】error C1083: 无法打开包括文件:“ui_xxxxx.h”
1.1 在Vs2015上的具体表现:
“Severity Code Description Project File Line Suppression State
Error (active) cannot open source file "ui_VsQtFirstPj.h" VsQtFirstPj
d:\xxx\xxx\xxx\Qt_projects\vs_qt_pjs\VsQtFirstPj\VsQtFirstPj\VsQtFirstPj.h 4 ”
1.2【1.1现象说明】VS IDE编译后在项目的GeneratedFiles下已经生成对应 的ui_xxxx.h
但是VS的solution一栏却没有自动的生成ui_xxxx.h,所以,在使用ui_xxxx.h提示 cannot
open source file "ui_VsQtFirstPj.h"
1.3 【解决方法】
https://blog.csdn.net/IT_job/article/details/78739105
ps:没说明为什么,开始看时,觉得有点不靠谱,不过,执行第“生成解决方案”,在S的solution一栏
自动的生成了ui_xxxx.h,至于换release与debug又是为什么,也不明所以。后面在弄清楚,并重新整
理此篇文章。
2.【可能遇到的问题2】Error LNK1158
2.1【问题具体表现】
“Severity Code Description Project File Line Suppression State
Error LNK1158 cannot run 'rc.exe' VsQtFirstPj
D:\xxx\Qt_projects\vs_qt_pjs\VsQtFirstPj\VsQtFirstPj\LINK 1 ”
2.2【解决方法】
https://blog.csdn.net/yao_hou/article/details/91461927