Qt Essentials define the foundation of Qt on all platforms. They are available on all supported development platforms and on the tested target platforms. Except the testing modules, which will remain source compatible, these modules will remain source and binary compatible throughout Qt 6.
必需模塊對於大多數 Qt 應用程序而言,是通用和有用的。用於特殊目的模塊被視為附件模塊,即使它可用於所有支持平颱。
下錶列齣瞭 Qt 必需:
| 模塊 | 描述 |
|---|---|
| Qt Core | 用於其它模塊的核心非圖形類。 |
| Qt D-Bus | 透過 D-Bus 協議進行進程間通信的類。 |
| Qt GUI | Base classes for graphical user interface (GUI) components. |
| Qt Network | 使網絡編程更容易和更可移植的類。 |
| Qt QML | QML 和 JavaScript 語言類。 |
| Qt Quick | 采用自定義 UI (用戶界麵) 構建高動態應用程序的聲明式框架。 |
| Qt Quick Controls | 為桌麵、嵌入式和移動設備創建高性能 UI (用戶界麵) 而提供的輕量 QML 類型。這些類型運用簡單樣式化體係結構且非常高效。 |
| Qt Quick Dialogs | 用於從 Qt Quick 應用程序創建係統對話框,並與之交互的類型。 |
| Qt Quick Layouts | 布局是用於在用戶界麵中排列基於 Qt Quick 2 項的項。 |
| Qt Quick Test |
用於 QML 應用程序的單元測試框架,其測試案例被編寫成 JavaScript 函數。 注意: 二進製保證不兼容 Qt Quick Test,但源代碼仍兼容。 |
| Qt Test |
單元測試 Qt 應用程序和庫的類。 注意: 二進製保證不兼容 Qt Test,但源代碼仍兼容。 |
| Qt Widgets | 以 C++ 小部件擴展 Qt GUI 的類。 |
Qt Add-On 模塊為特定目的,帶來額外價值。這些模塊隻可用於某些開發平颱。許多附件模塊要麼特徵完整,要麼是為嚮後兼容而存在的,或僅適用於某些平颱。每個附件模塊,分彆指定其兼容性承諾。
Qt 安裝程序包括下載附件的選項。更多信息,拜訪 Qt 快速入門 頁麵。
下錶列齣瞭 Qt 附件:
| 模塊 | 開發平颱 | 目標平颱 | 描述 |
|---|---|---|---|
| Active Qt | Windows | Windows | 使用 ActiveX 和 COM 的應用程序類 |
| Qt 3D | 所有 | 所有 | 支持 2D 3D 近實時仿真係統渲染功能。 |
| Qt 5 Core Compatibility APIs | 所有 | 所有 | Qt Core APIs that were in Qt 5 but not Qt 6. |
| Qt Bluetooth | 所有 | Android , iOS , Linux , Boot to Qt , macOS and Windows | 提供對藍牙硬件的訪問。 |
| Qt Concurrent | 所有 | 所有 | 用於編寫多綫程程序 (無需使用低級綫程原語) 的類。 |
| Qt Help | 所有 | 所有 | Classes for integrating documentation into applications. |
| Qt Image Formats | 所有 | 所有 | 額外圖像格式插件:TIFF MNG TGA WBMP。 |
| Qt Multimedia | 所有 | All* | A rich set of QML types and C++ classes to handle multimedia content. Also includes APIs to handle camera access. |
| Qt NFC | 所有 | Android , iOS , macOS , Linux and Windows | Provides access to Near-Field communication (NFC) hardware. On desktop platforms NDEF access is only supported for Type 4 tags. |
| Qt OPC UA | 所有 | All (except QNX, WebAssembly) | Protocol for data modeling and exchange of data in industrial applications. |
| Qt OpenGL | 所有 | 所有 | C++ classes that make it easy to use OpenGL in Qt applications. A separate library of Qt OpenGL Widgets C++ Classes provides a widget for rendering OpenGL graphics. |
| Qt PDF | 所有 | Windows , Linux ,和 macOS . | 用於渲染 PDF 文檔的類和函數 |
| Qt Positioning | 所有 | Android , iOS , macOS , Linux and Windows | Provides access to position, satellite info and area monitoring classes. |
| Qt Print Support | 所有 | All (except iOS) | 使打印更輕鬆,更便攜的類。 |
| Qt Quick Widgets | 所有 | 所有 | 提供用於顯示 Qt Quick 用戶界麵的 C++ Widget 類。 |
| Qt Quick Effects | 所有 | 所有 | Provides QML types for applying one or more simple graphical effects to Qt Quick items. |
| Qt Quick Particles | 所有 | 所有 | Provides QML types for particle effects. |
| Qt Remote Objects | 所有 | 所有 | 提供易於使用的機製為共享 QObject 的 API (特性/信號/槽) 在進程或設備之間。 |
| Qt SCXML | 所有 | 所有 | 提供用於從 SCXML (狀態圖錶 XML) 文件創建狀態機,並將它們嵌入應用程序的類和工具。 |
| Qt Sensors | 所有 | Android , iOS ,和 Windows | Provides access to sensor hardware. |
| Qt Serial Bus | 所有 | Linux , Boot to Qt , macOS and Windows | Provides access to serial industrial bus interfaces. Currently, the module supports the CAN bus and Modbus protocols. |
| Qt Serial Port | 所有 | Linux , Boot to Qt , macOS and Windows | Provides classes to interact with hardware and virtual serial ports. |
| Qt Shader Tools | 所有 | 所有 | Provides tools for the cross-platform Qt shader pipeline. These enable processing graphics and compute shaders to make them usable for Qt Quick and other components in the Qt ecosystem. |
| Qt Spatial Audio | 所有 | 所有 | Provides support for spatial audio. Create sound scenes in 3D space containing different sound sources and room related properties such as reverb. |
| Qt SQL | 所有 | 所有 | 集成使用 SQL 數據庫的類。 |
| Qt State Machine | 所有 | 所有 | Provides classes for creating and executing state graphs. |
| Qt SVG | 所有 | 所有 | 用於顯示 SVG 文件內容的類。支持子集 SVG 1.2 Tiny standard. A separate library of Qt SVG Widgets C++ Classes provides support for rendering SVG files in a widget UI. |
| Qt TextToSpeech | 所有 | 所有 | Provides support for synthesizing speech from text and playing it as audio output. |
| Qt UI Tools | 所有 | 所有 | 類為加載 QWidget 基於創建錶單在 Qt Designer 動態,在運行時。 |
| Qt WebChannel | 所有 | 所有 | 提供訪問 QObject 或 QML 對象從 HTML 客戶端,為無縫集成 Qt 應用程序與 HTML/JavaScript 客戶端。 |
| Qt WebEngine | 所有 | Windows , Linux ,和 macOS . | 把 Web 內容嵌入應用程序的類和函數,采用 Chromium 瀏覽器工程 . |
| Qt WebSockets | 所有 | 所有 | 提供的 WebSocket 通信兼容 RFC 6455 . |
| Qt WebView | 所有 | 采用本機 Web 引擎的平颱。 | 通過使用平颱本機 API 在 QML 應用程序中顯示 Web 內容,無需包括完整 Web 瀏覽器堆棧。 |
| Qt XML | 所有 | 所有 | Handling of XML in a Document Object Model (DOM) API. |
|
可用於商業許可或 GNU GPL (一般公共許可) 第 3 版下的附件 |
|||
| Qt Charts | 所有 | 所有 | 用於顯示視覺上令人愉悅的圖錶 (由靜態或動態數據模型驅動) UI 組件。 |
| Qt CoAP | 所有 | 所有 | Implements the client side of CoAP defined by RFC 7252. |
| Qt Data Visualization | 所有 | 所有 | 用於創建驚人 3D 數據可視化的 UI 組件。 |
| Qt Lottie Animation | 所有 | 所有 | 以 JSON 格式渲染圖形和動畫的 QML API,導齣通過 Bodymovin 插件 for Adobe® After Effects。 |
| Qt MQTT | 所有 | 所有 | Provides an implementation of the MQTT protocol specification. |
| Qt Network Authorization | 所有 | 所有 | 為基於 OAuth 的在綫服務授權提供支持。 |
| Qt Quick 3D | 所有 | 所有 | 提供基於 Qt Quick,創建 3D 內容或 UI 的高級 API。 |
| Qt Quick 3D Physics | 所有 | All supported platforms except QNX and INTEGRITY. | Qt Quick 3D Physics provides a high-level QML module adding physical simulation capabilities to Qt Quick 3D. |
| Qt Quick Timeline | 所有 | 所有 | 啓用基於關鍵幀的動畫和參數化。 |
| Qt Virtual Keyboard | 所有 | Linux and Windows 桌麵,及 Boot to Qt 目標。 | 用於實現不同輸入法及 QML 虛擬鍵盤的框架。支持本地化鍵盤布局和自定義視覺主題。 |
| Qt Wayland Compositor | Linux | Linux and Boot to Qt 目標。 | 提供開發 Wayland 閤成器的框架。 |
注意: All* refers to all supported platforms except INTEGRITY.
The following add-ons are still in development, but are available as technology previews:
| 模塊 | 開發平颱 | 目標平颱 | 描述 |
|---|---|---|---|
| Qt HTTP Server | 所有 | 所有 | A framework for embedding an HTTP server into a Qt application. |
| Qt Protobuf | 所有 | 所有 | Provides an ability to generate Qt-based classes from protobuf specifications. |
| Qt GRPC | 所有 | 所有 | Provides an ability to generate Qt-based classes from protobuf specifications used to communicate with gRPC ® services. |
| Qt Location | 所有 | 所有 | Provides QML and C++ interfaces to create location-aware applications. |
我們邀您探索 Qt 的其餘部分。我們準備的概述幫助您決定要使用哪些 API,示例演示如何使用 API。