顯示具有 Qt 標籤的文章。 顯示所有文章
顯示具有 Qt 標籤的文章。 顯示所有文章

2010年6月16日 星期三

First Qt program - Hello

0 意見
程式碼如下:(參考良葛格Qt4範例)


qmake -project: 產生 .pro 專案檔
qmake: 產生 Makefile
make

然後切換至 debug 目錄
執行 hello

執行結果:


Learning Materials:
Tutorials
http://doc.qt.nokia.com/4.6/tutorials.html

How to Learn Qt
http://doc.trolltech.com/4.6/how-to-learn-qt.html

All Overviews and HOWTOs
http://doc.trolltech.com/4.6/overviews.html

API References
http://doc.trolltech.com/4.6/index.html

Qt 環境配置 [Windows]

0 意見
1. 下載 MinGW - Minimalist GNU for Windows
網址:http://sourceforge.net/projects/mingw/files/

安裝下列三者:
a. MinGW base tools
b. g++ compiler
c. MinGW Make

設定環境變數:
C:\MinGW\bin

MinGW base tools 包含下列項目:


2. 下載 QT Framework
網址:http://qt.nokia.com/downloads/


設定環境變數:
C:\Qt\4.6.3\bin

執行開始功能表中 Qt 資料夾
(預設名稱為 "Qt by Nokia v4.6.3 (OpenSource)")裡的
"Qt 4.6.3 (Build Debug Libraries)",
以建立 Debug Library。
(這個過程可能需要2個小時以上)


build成功後,如下圖:



相關連結:
http://program-lover.blogspot.com/2008/09/installing-qt-on-windows.html