支持平台

Qt 是商业和开放源码许可的跨平台应用程序和 UI 框架。它由 Qt 公司和 Qt 工程社区在开源治理模型下一起开发。

使用 Qt,一编写 GUI 应用程序,就可跨桌面、移动及嵌入式操作系统部署它们,无需重写源代码。

Qt 支持各种 32 位和 64 位平台,并且通常可以采用 GCC、供应商提供的编译器或第 3 方编译器在各平台上构建,如下所述。

Open GL (ES) 2.0、DirectX 9 或 DirectX 11 (带 ANGLE)、或 替代渲染器 是要求的对于 Qt Quick 2. Widgets 无需硬件加速即可使用。

在 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 文档编制存档 .

Configurations in bold are 参考配置 .

桌面平台

Linux/X11

分发 体系结构 编译器 注意事项
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 由 Canonical 提供的 GCC, GCC 7.3.0
Ubuntu 16.04 x86_64 由 Canonical 提供的 GCC, GCC 5.4.0
一般 Linux x86 and x86_64 GCC 4.8, GCC 4.9, GCC 5, GCC 6, GCC 7

macOS

目标平台 体系结构 构建环境
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

操作系统 体系结构 编译器 注意事项
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

平台版本 体系结构 编译器 构建环境
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/tvOS/watchOS

目标平台 体系结构 构建环境 注意事项
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。

WinRT

平台版本 体系结构 编译器 构建环境
通用 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 应用程序的部署

各平台的部署过程是不同的,且其平台页面有更详细描述。同时,还有部署文章概括了一般部署过程。

请注意,Qt 是按原样提供的,没有任何种类的担保,我们的产品是没有错误或 Bug 自由的。在适用法律允许的最大范围内,Qt 公司代表自身及其供应商,拒绝任何明示或暗示的担保和条件,包括但不限于对许可软件的适销性、特定目的适用性,冠名和不侵权的隐含担保。