All Modules

Qt Essentials

Qt要点定义了所有平台上Qt的基础。 它们在所有受支持的开发平台和经过测试的目标平台上均可用。 它们将在Qt 5期间保持源和二进制兼容。

基本模块是通用的,对大多数Qt应用程序很有用。 A module that is used for a special purpose is considered an add-on module even if it is available on all supported platforms.

The following table lists the Qt essentials:

ModuleDescription
Qt Core其他模块使用的核心非图形类。
Qt GUIBase classes for graphical user interface (GUI) components. Includes OpenGL.
Qt MultimediaClasses for audio, video, radio and camera functionality.
Qt Multimedia WidgetsWidget-based classes for implementing multimedia functionality.
Qt Network这些类使网络编程更轻松,更可移植。
Qt QMLQML和JavaScript语言的类。
Qt QuickA declarative framework for building highly dynamic applications with custom user interfaces.
Qt Quick ControlsReusable Qt Quick based UI controls to create classic desktop-style user interfaces.
Qt Quick DialogsTypes for creating and interacting with system dialogs from a Qt Quick application.
Qt Quick LayoutsLayouts are items that are used to arrange Qt Quick 2 based items in the user interface.
Qt SQLClasses for database integration using SQL.
Qt TestClasses for unit testing Qt applications and libraries.
Qt Widgets使用C++小部件扩展Qt GUI的类。

如果使用qmake生成项目,则默认包含Qt CoreQt GUI模块。 要仅针对Qt Core进行链接,请将以下行添加到您的.pro文件中:


  QT -= gui

在Windows上,如果不使用qmake或其他构建工具(例如CMake),则还需要链接到qtmain库。

Qt Add-Ons

Qt Add-On modules bring additional value for specific purposes. These modules may only be available on some development platform. Many add-on modules are either feature-complete and exist for backwards compatibility, or are only applicable to certain platforms. Each add-on module specifies its compatibility promise separately.

The Qt installers include the option of downloading the add-ons. For more information, visit the Getting Started with Qt page.

The following table lists the Qt add-ons:

Module开发平台目标平台Description
Active QtWindows使用ActiveX和COM的应用程序的类
Qt 3DAll支持2D和3D渲染的近实时仿真系统的功能。
Enginio (Deprecated)AllAllA Backend-as-a-Service solution to ease the backend development for connected and data-driven applications.
Qt Android ExtrasAllAndroid提供适用于Android的平台特定的API。
Qt BluetoothAllAndroid, iOS, Linux and macOS提供对蓝牙硬件的访问。
Qt Canvas 3DAllEnables OpenGL-like 3D drawing calls from Qt Quick applications using JavaScript.
Qt ConcurrentClasses for writing multi-threaded programs without using low-level threading primitives.
Qt D-BusAllClasses for inter-process communication over the D-Bus protocol.
Qt GamepadAllAndroid, iOS, macOS, tvOS (including the tvOS remote), Linux, WindowsEnables Qt applications to support the use of gamepad hardware.
Qt Graphical EffectsAllGraphical effects for use with Qt Quick 2.
Qt Image FormatsAllPlugins for additional image formats: TIFF, MNG, TGA, WBMP.
Qt LocationAllAll在QML应用程序中显示地图,导航和放置内容。
Qt Mac ExtrasAllmacOSProvides platform-specific APIs for macOS.
Qt NFCAllAndroid and LinuxProvides access to Near-Field communication (NFC) hardware.
Qt OpenGL (Deprecated)OpenGL support classes. Deprecated in favor of the QOpenGL* classes in the Qt GUI module.
Qt Platform HeadersProvides classes that encapsulate platform-specific information, tied to a given runtime configuration of a platform plugin.
Qt PositioningAllAndroid, iOS, macOS, Linux, WinRT.Provides access to position, satellite and area monitoring classes.
Qt Print SupportAllClasses to make printing easier and more portable.
Qt PurchasingAllAndroid, iOS, and macOS.Enables in-app purchase of products in Qt applications.
Qt Quick Controls 2AllProvides lightweight QML types for creating performant user interfaces for embedded and mobile devices. These controls achieve improved efficiency by employing a simplified styling architecture when compared to Qt Quick Controls. These types work in conjunction with Qt Quick and Qt Quick Layouts.
Qt Quick ExtrasAllProvides a specialized set of controls that can be used to build interfaces in Qt Quick.
Qt Quick WidgetsAllProvides a C++ widget class for displaying a Qt Quick user interface.
Qt Script (Deprecated)AllClasses for making Qt applications scriptable. Deprecated in favor of the QJS* classes in the Qt QML module.
Qt SCXMLAllAllProvides classes and tools for creating state machines from SCXML files and embedding them in applications.
Qt Script Tools (Deprecated)AllAdditional components for applications that use Qt Script.
Qt SensorsAllAndroid, Qt for iOS, WinRT and Mer.Provides access to sensor hardware and motion gesture recognition.
Qt Serial BusLinuxLinux and Boot to Qt targets.Provides access to serial industrial bus interface. Currently the module supports the CAN bus and Modbus protocols.
Qt Serial PortAllWindows, Linux, and macOS.Provides access to hardware and virtual serial ports.
Qt SVGAllClasses for displaying the contents of SVG files. Supports a subset of the SVG 1.2 Tiny standard.
Qt WebChannelAllAllProvides access to QObject or QML objects from HTML clients for seamless integration of Qt applications with HTML/JavaScript clients.
Qt WebEngineAllWindows, Linux, and macOS.使用Chromium浏览器项目将Web内容嵌入应用程序中的类和函数。
Qt WebSocketsAllAllProvides WebSocket communication compliant with RFC 6455.
Qt WebViewAllPlatforms with a native web engine.通过使用平台固有的API在QML应用程序中显示Web内容,而无需包含完整的Web浏览器堆栈。
Qt Windows ExtrasAllWindows为Windows提供平台特定的API。
Qt X11 ExtrasAllLinux/X11Provides platform-specific APIs for X11.
Qt XMLC++ implementations of SAX and DOM.

Note: This module is not required to use QXmlStreamReader and QXmlStreamWriter. They are already part of Qt Core.

Qt XML PatternsSupport for XPath, XQuery, XSLT and XML schema validation.
Qt Wayland CompositorLinuxLinux and Boot to Qt targets.Provides a framework to develop a Wayland compositor.

Add-ons available under Commercial Licenses, or GNU General Public License v3

Qt ChartsAllUI组件,用于显示视觉上令人愉悦的图表,该图表由静态或动态数据模型驱动。
Qt Data VisualizationAllAllUI Components for creating stunning 3D data visualizations.
Qt Virtual KeyboardAllLinux and Windows desktop, and Boot to Qt targets.A framework for implementing different input methods as well as a QML virtual keyboard. Supports localized keyboard layouts and custom visual themes.

Value-Add Modules

In addition to the modules released as part of Qt 5, the following modules and tooling build on top of the Qt libraries to provide additional value. They have their own release schedule, and are available under the commercial license.

FeatureDescription
Qt for Device CreationTools for fast, easy, and fully-integrated embedded device application development. Includes most other Value-Add features.
Qt Quick CompilerEnables compiling .qml source files into application binaries, improving load times and security for code assets.

Technology Preview Modules

The following modules are still in development but are available as technology previews.

ModuleDescription
Qt Network AuthorizationProvides support for OAuth-based authorization to online services.
Qt SpeechProvides support for accessibility features such as text-to-speech.
Qt Remote ObjectsProvides an easy to use mechanism for sharing a QObject's API (Properties/Signals/Slots) between processes or devices.

Qt Tools

Qt Tools run on all the supported development platforms and facilitate the development and design of applications.

The following table lists the Qt tools:

ToolDescription
Qt DesignerClasses for extending Qt Designer.
Qt HelpClasses for integrating online documentation into applications, similar to Qt Assistant.
Qt UI ToolsClasses to handle the forms created in Qt Designer.

Where to Go from Here

We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use our API.