Windows 下 QT 開發環境的搭建

來源:互聯網
上載者:User

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!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.