Windows 下 QT 开发环境的搭建

Qt 4.x Open Source (MinGW) for Windows安装

这里是指直接在Windows 2000/XP上安装Trolltech预编译好的Qt 4.x for Windows版本。这个版本使用了开源的MinGW编译器。因为很多在Windows上的朋友早已经习惯了Visual C++或者Borland C++ Builder这样的IDE,所以这里给大家推荐的是Dev-C++,Windows上的开源IDE,希望对大家能有所帮助。

下载

Dev-C++
http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe?download
ftp://ftp.qtopia.org.cn/mirror/dev-cpp.sourceforge.net/devcpp-4.9.9.2_setup.exe
http://www.qtopia.org.cn/ftp/mirror/dev-cpp.sourceforge.net/devcpp-4.9.9.2_setup.exe

Qt 4.x Open Source (MinGW) for Windows
ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.1.1-mingw.exe
ftp://ftp.qtopia.org.cn/mirror/ftp.trolltech.com/qt/source/qt-win-opensource-4.1.1-mingw.exe
http://www.qtopia.org.cn/ftp/mirror/ftp.trolltech.com/qt/source/qt-win-opensource-4.1.1-mingw.exe

安装

先安装Dev-C++,在Choose Components的时候,记得要保证Mingw compiler system被选中,默认是选中的。

然后安装Qt 4.x,在MinGW Installation的时候,请保证Download and install minimal MinGW installation.不要被选中,默认是不选中的。另外在Previously installed MinGW:一项中填入上一步中Dev-C++安装的位置,默认位置为C:/Dev-Cpp。在Configure Enviroment的时候,Set environment variables要选中,默认是选中的。

然后就都安装完毕了。

想看看Qt 4.x的demo么?
运行一下C:/Qt/4.1.1/bin/qtdemo.exe
看到了么?
这些都是Qt!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值