Qt for Android ™ enables you to develop Qt applications for Android devices, and supports a wide range of features and use-cases.
To start your Qt for Android application, download and install Qt for Android and use the Qt Creator IDE, follow the instructions on the Qt for Android 快速入门 页面。
If you have an existing Android application, try Qt Quick for Android . It includes plugin for Google's Android Studio. Find it on the IntelliJ marketplace. This enables you to add Qt Quick content to your Android app as a View .
要从源代码构建 Qt,见 从源代码构建 .
此 Qt 发行支持下列配置:
| Section | 描述 |
|---|---|
| 分发 | Android 9 (API 28) to 15 (API 35) |
| 体系结构 |
arm64-v8a
,
x86_64
,
x86
,和
armeabi-v7a
|
| 编译器 |
Clang 17.0.2 (NDK r26b and r27c or 26.1.10909125 and 27.2.12479018)
注意: It's recommended that Qt apps use the same NDK version used for building the official Qt for Android libraries to avoid missing symbol errors. In releases supporting multiple NDKs, the newest supported NDK is used for building Qt. |
| JDK | JDK 17 |
| Gradle | Gradle 8.10 和 AGP 8.6.0 |
| Package |
Multi-ABI
APK
s,
AAB
s and
AAR
s
注意: Multi-ABI builds are available only when using CMake. For more information, see CMake Android Multi-ABIs . |
For more information on the supported Android versions, see Qt for Android Supported Versions Selection Guidelines .
To learn about developing with Qt for Android, here are the main topics to check:
The following topics also provide more details about Qt for Android:
| How to package OpenSSL libraries with a Qt for Android application. | |
| Information particular to building and running Qt applications on Android. | |
| Provides information about Android Services support in Qt. | |
| Provides instructions to port your existing Qt application to Android. | |
| Provides instructions to prepare your application for publishing. | |
| An overview on using QML in native Android projects | |
| Information regarding CMake and Android platform APIs. | |
| Lists some useful environment variables used by the Qt For Android toolchain. | |
| Guide for Supporting Google Emoji Font Policy using QML or C++. | |
| Overview of the androidtestrunner tool for running Qt tests on Android | |
| Instructions on including third-party Android libraries in an application. |
不可以使用 Android Fragments in a Qt for Android application.
However, Qt does offer its own modular components and views with QML. You can combine multiple components in one QML view. For more information, see Qt Qml .
If you are integrating Qt Quick for Android into an Android application, the QtQuickView API can be used inside fragments.
Qt's vibrant and active community site 包含 Wiki、论坛及其它学习指南和演示文稿。
For information about licensing, check Android GNU C++ 运行时许可 .
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 APIs.