How to develop Qt applications on VS2015


VS2015 + Qt5.11.2 environment to build process:

(1) VS version: VS2015

(2) Qt version: qt-opensource-windows-x86-5.11.2.exe

(3) vs-addin: qt-vsaddin-msvc2015-2.4.2.vsix

(4) System: win10

VS2015 when selecting components to be installed, only need to select the installation Visual C++, the other by the default installation, installation steps not described in detail herein said.

Qt5.11.2 installation can refer to my other blog post: Qt Quick Start bis: Qt Creator Introduction .


First, install vs-addin

(1) Open VS2015, opened and extended tool update panel, select the line, the search box on the right input QT, corresponding extensions, as shown below will appear.



If the above method is too slow to download, you can go directly to http://download.qt.io/archive/vsaddin/ download the corresponding plug, after the download is complete double click installation.


(2) the installation is complete, restart VS2015, you can see the Qt VS Tools menu bar in VS2015, click Qt VS Tools-Qt Options, make the following settings:


Second, configure the environment variables

New environment variables:


Edit Path:


Third, the new Qt program

New Qt applications:



注意:如果找不到 Qt 程序库,可以右击【项目】->【属性】-> 【配置属性】->【C/C++】->【常规】,编辑 “附加包含目录”,找到 Qt 的安装目录下的 include 文件夹的路径,将它添加进 “附加包含目录” 里面,然后一路确认即可。重新编译程序,编译通过。


参考:

Windows下Vs2015配置Qt5.11.2全解


Guess you like

Origin www.cnblogs.com/linuxAndMcu/p/12037814.html