已安装vs2015
1.QT下载
下载网址:https://download.qt.io/archive/qt/
(Qt5.7 开始支持 VS2015)Qt5跟Qt4差异较大,没有特殊要求建议使用Qt5系列的进行开发。
用的5.14.0
使用管理员模式打开安装程序
选择MVSC2015
报错
vc_runtimeMinimum_x86.msi 14.0.24215
vc_runtimeMinimum_x64.msi 14.0.24215
使用安装包修复:
https://download.csdn.net/download/qq_35608277/12740018
安装成功
2 在 Windows 上配置 MSVC2015 作为 Qt 编译器
(1)编辑系统环境路径
(2)VS中安装开发Qt的插件
不要用vs自带的:Visual Studio 2015中依次进行【工具】–【扩展和更新】-【联机】-【搜索Qt】-【下载插件Qt VS Tools】-【关闭VS安装插件】
https://download.csdn.net/download/qq_35608277/12740018
下载: qt-vsaddin-msvc2015-2.5.1-rev.18.vsix
(3)配置VS中的Qt Options
【Qt VS Tools】- 【Qt Options】-【Add】-【Path选择Qt安装目录的msvc2017_64】-【OK】
ref
https://blog.csdn.net/qq_21449473/article/details/107126475?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.channel_param
问题:
Application failed to start because it could not find or load the QT platform plugin “windows”;
解决方法:1. 可以吧这个exe文件拷贝到qt的安装目录下的bin目录下运行即可,比如我的C:\Qt\Qt5.8.0\5.8\msvc2015\bin;
2. 把bin目录下的Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll以及C:\Qt\Qt5.8.0\5.8\msvc2015\plugins\platforms拷贝到exe同级目录。platforms文件夹下有qminimal.dll, qoffscreen.dll, qwindows.dll.
the following error occured:cannot open .ui file in Qt Designer
解决:
先点击.UI文件,再运行
https://blog.csdn.net/lhl1124281072/article/details/80023787