Windows 下搭建 VS2010 和 Qt4.8.5 的集成开发环境
1、VS2010 的安装:
(1) 下载 Microsoft Visual Studio 2010 安装包;
(2) 将下载的 Microsoft Visual Studio 2010 安装包解压到适当位置;
(3) 开始安装,双击运行 setup.exe,打开安装界面(如图 1);
图 1
(4) 选择“安装 Microsoft Visual Studio 2010”,程序自动安装所需组件(如图 2),
组件安装完成后,点击下一步;
图 2
(5) 对话框会显示安装程序检测到已安装的和将要安装的所需组件(如图 3),选择
“我已阅读并接收许可条款”,点击下一步;
(6) 选择要安装的功能和安装的位置(如图 4),点击安装;
图 3
(7) 程序开始安装,安装界面如图 5;
(8) 完成安装,打开 Microsoft Visual Studio 2010,界面如图 6。
图 5
2、QT 的安装:
(1) 下载 qt-win-opensource-4.8.5-vs2010 安装包;
(2) 运行 qt-win-opensource-4.8.5-vs2010 安装包,弹出界面如图 7,选择 next;
(3) 弹出“Open Source Edition”对话框(如图 8),选择 next;
图 7
图 8
(4) 弹出“License Agreement”对话框 ,选择“I accept the terms of the License
Agreement”,点击 next;
图 9
(5) 弹出“Choose Components”对话框(如图 10),选择你需要安装的内容,点击
next;
(6) 弹出“Choose Install Location”对话框(如图 11),选择安装路径,点击 next;
图 10
(7) 弹出“Choose Start Menu Folder”对话框(如图 12),点击 Install;
图 11
图 12
(8) 完成安装。
3、配置 VS2010 与 QT 的集成开发环境
(1) 下载 qt-vs-addin-1.1.11-opensource 安装包,运行 qt-vs-addin-1.1.11-opensource
安装包,界面如图 13,点击 next;
图 13
(9) 弹出“License Agreement”对话框(如图 14),选择“I accept the terms of the
License Agreement”,点击 next;
(2) 弹出“Choose Components”对话框(如图 15),选择你需要安装的内容,点击
next;
图 14
图 15