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!