Qt 是采用商業和開放源碼許可的,跨平颱應用程序和 UI 框架。它由 Qt 公司和 Qt 工程社區在開源治理模型下一起開發。
使用 Qt,一旦編寫 GUI 應用程序,就可以跨桌麵、移動及嵌入式操作係統部署它們,無需重寫源代碼。
Qt 支持各種 32 位和 64 位平颱,且通常可以采用 GCC、供應商提供的編譯器 (或第 3 方編譯器) 在各平颱中構建,如下所述。
Open GL (ES) 2.0、DirectX 9 或 DirectX 11 (帶 ANGLE)、或 替代渲染器 是要求的對於 Qt Quick 2. 小部件 無需硬件加速即可使用。
在 Qt 5 中所有平颱的創建是使用的 Qt Platform Abstraction (QPA),使之能輕鬆把 Qt 移植到新操作係統。
The following platforms are supported in Qt 5.12. For support information for prior Qt releases, please consult the relevant version in the Qt 文檔編製存檔 .
配置在 bold are 參考配置 .
| 分發 | 體係結構 | 編譯器 | 注意事項 |
|---|---|---|---|
| openSUSE 42.3 |
x86_64
|
GCC 4.8, GCC 7 , ICC | |
| Red Hat Enterprise Linux 7.4 |
x86_64
|
GCC 5.3.1 | devtoolset-4 |
| Ubuntu 18.04 |
x86_64
|
GCC as provided by Canonical, GCC 7.3.0 | |
| Ubuntu 16.04 |
x86_64
|
GCC as provided by Canonical, GCC 5.4.0 | |
| 一般 Linux |
x86
and
x86_64
|
GCC 4.8, GCC 4.9, GCC 5, GCC 6, GCC 7 |
| 目標平颱 | 體係結構 | 構建環境 |
|---|---|---|
| macOS 10.12, 10.13, 10.14 |
x86_64
and
x86_64h
|
Xcode 10 (10.14 SDK), Xcode 9 * (10.13 SDK) |
注意: Xcode 9 is only supported for application development (to be able to opt out of features such as layer-backing and dark mode), not for development of Qt itself.
| 操作係統 | 體係結構 | 編譯器 | 注意事項 |
|---|---|---|---|
| Windows 10 |
x86
and
x86_64
|
MSVC 2017 , MSVC 2015 , MinGW 7.3 | Tested on Windows 10 Creators Update |
| Windows 8.1 |
x86
and
x86_64
|
MSVC 2017, MSVC 2015 , MinGW 7.3 | |
| Windows 7 |
x86
and
x86_64
|
MSVC 2017, MSVC 2015, MinGW 7.3 | MinGW-builds GCC 7.3.0 (x86) |
| 平颱版本 | 體係結構 | 編譯器 | 構建環境 |
|---|---|---|---|
| Android 4.1, 5, 6, 7, 8 (API Level 16) |
armv7
and
x86
|
由 Google 提供的 Clang , MinGW 7.3 | RHEL 7.4 (x86_64) , macOS 10.13 , Windows 7 (x86_64) |
| 目標平颱 | 體係結構 | 構建環境 | 注意事項 |
|---|---|---|---|
| iOS 11, iOS 12 |
armv8
(
arm64
)
|
Xcode 10 (iOS 12 SDK) | |
| tvOS 11, tvOS 12 |
armv8
(
arm64
)
|
Xcode 10 (tvOS 12 SDK) | 技術預覽 |
| watchOS 4, watchOS 5 |
armv7k
|
Xcode 10 (watchOS 5 SDK) | 技術預覽。無 UI。 |
| 平颱版本 | 體係結構 | 編譯器 | 構建環境 |
|---|---|---|---|
| 通用 Windows 平颱 10 |
x86
,
x86_64
,和
armv7
|
MSVC 2017 , MSVC 2015 | Windows 10 Creators Update |
通用 Windows 平颱包括:Windows 10,Windows 10 IoT 設備,Xbox One 及 HoloLens。
對嵌入式平颱的支持,包括 嵌入式 Linux , INTEGRITY , QNX ,和 VxWorks ,請翻閱 Qt for Device Creation 文檔編製。
參考配置運行在 Qt 工程的 CI (持續集成) 係統中。此外,它們經常 (在新版本發,源代碼樹分支前,及在開發過程中的其它重要時間點) 受製於單元測試套件和其它內部測試工具。會優先修正在這些平颱發現的錯誤 (或 Bug)。測試配置中發現的重大錯誤會影響發行日期。
Any configurations not listed above are not actively tested by the Qt Project. However, Qt may run on configurations other than those actively tested on, and additional configurations may be raised to tested state, if sufficient effort is made to bring continuous integration to an acceptable state for that particular configuration.
The Qt Company, Qt partners, open source projects and community users are able to provide assistance with various different supported platforms and configurations.
可以下載 Qt 5 安裝程序和源代碼包從 下載 頁麵。更多信息,拜訪 Qt 快速入門 頁麵。
單個模塊可能隻在某些平颱上是可用的,或者它們可能不支持所有配置。例如,由於 Qt WebEngine 擁有 Chromium 作為第 3 方依賴,因此上遊平颱或配置的局限性也適用於 Qt WebEngine。
各模塊的文檔編製均包含模塊來自通用平颱和配置支持的任何異常的詳細信息,如本頁所述。
各平颱的部署過程是不同的,且其平颱頁麵有更詳細描述。同時,還有部署文章概括瞭一般部署過程。
請注意,Qt 是按原樣提供的,沒有任何種類的擔保,我們的産品是沒有錯誤或 Bug 自由的。在適用法律允許的最大範圍內,Qt 公司代錶自身及其供應商,拒絕任何明示或暗示的擔保和條件,包括但不限於對許可軟件的適銷性、特定目的適用性,冠名和不侵權的隱含擔保。