Vs+Qt error :VS2015+Qt5.9第一次使用是可能出现如下问题

【环境背景】: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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值