1、下载
VS2015社区版下载链接(迅雷下载,不需要登录):ed2k://|file|cn_visual_studio_community_2015_x86_dvd_6847368.iso|4013920256|EB7F6605EDE67509E218E29173AC6574|/
Qt5.13.1下载链接:
Index of /archive/qt/5.13/5.13.1
选择qt-opensource-windows-x86-5.13.1.exe
2、安装
先安装Qt,除流选择安装目录,组件记得选择2015,其它都下一步就行流
如果需要登录,就需要去Qt官网上注册账号,
然后安装VS2015,也一样
中安装完2015后,打开,工具->扩展和更新->联机->搜索Qt,然后下载Qt Visual Studio Tools
安装重启后,中菜单栏就可以看到一个Qt VS Tools的菜单了,安装就完成流
3、错误问题解决
①、The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
类似这样的问题,项目右键->属性,选择2015的v140就可以了
②、打开ui文件后马上就会关闭病弹出类似等提示,是应为vs找不到对于等应用程序,
右键点击这个UI文件,在快捷菜单中选择打开方式,我的路径是E:\Qt\5.13.1\msvc2015_64\bin中
然后点击确定,选择新出的Qt Designer
③、提示无法打开源文件“QtWidgets/QApplication”
右键项目选择属性
根据自己安装等路径添加进去就可以了