Qt 快速入門

Install Qt

You can install the Qt Framework and tools by using an online or offline installer or by building the source packages yourself.

在綫安裝程序 ,可以選擇安裝商業或開源版本的 Qt、工具及附加組件。使用在綫安裝程序要求登錄到您的 Qt 帳戶 。安裝程序從服務器檢索帳戶附加許可,並提供許可對應的可用組件列錶。

An offline installer 是包含與目標平颱相關的所有 Qt 和附加組件的單獨包。商業許可用戶可以在安裝過程中,采用其 Qt 帳戶或 Qt 許可密鑰登錄。許可密鑰可用於 Qt 帳戶 Web 門戶。

You can download Qt 5 installers from the 下載 頁麵。

You can use the Qt installers to download and install the following components:

  • 為特定開發平颱預構建的 Qt 庫 (操作係統和編譯器)
  • Qt Creator IDE (集成開發環境)
  • 參考文檔編製和範例
  • 為源代碼形式的 Qt (若希望自己構建框架和工具,纔需要)
  • 與不同平颱相關的附加組件

After downloading, start the installer like any executable on the development platform.

要運行安裝程序,您需要 Qt 帳戶。可以使用您的 Qt 帳戶憑據去登錄所有 Qt 服務,包括論壇和 Wiki。若沒有 Qt 帳戶,可以在安裝過程中創建一個。

要完成安裝,選擇希望安裝的組件並遵循安裝程序操作指南。

Use the Maintenance Tool under <install_dir> 去添加組件,及更新或刪除已安裝組件。

平颱要求

Developing applications on different platforms are covered in the platform pages.

更多信息,拜訪 支持平颱 頁麵。

創建第 1 個應用程序

通過以下 2 教程學習 Qt 和 Qt Quick 開發的基礎,這 2 教程闡明瞭如何創建簡單應用程序,及如何在目標平颱構建和運行它們:

Qt Widgets 提供 UI 元素庫,允許您創建經典的桌麵樣式用戶界麵。 Qt Quick 是為構建現代、流暢、動畫化 UI,提供類型和函數的庫。

對於以 Qt 5 開發應用程序的各方麵的詳細介紹,見 QML 書籍 。它聚焦於 Qt Quick,但還提供把 QML 與 C++ 一起使用所需的信息。

探索 Qt

我們邀您探索 Qt 的其餘部分。準備幫您決定要使用哪些 API 的概述,且我們的範例還演示如何使用它們。

要查看所有 Qt 範例的列錶,請拜訪 Qt 範例列錶 頁麵。

設置工程

采用 Qt Creator 進行開發

參考文檔編製

Qt 工程社區

Qt 振奮且活躍的社區站點, http://qt.io 包含 Wiki、論壇及其它學習指南和演示文稿。