Qt for Android

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's plugin for Google's Android Studio. Find it on the IntelliJ marketplace to download. The plugin allows you use the Qt Quick View Android 类 to add Qt Quick content to your Android app as a view .

要从源代码构建 Qt,见 从源代码构建 .

支持的配置

此 Qt 发行支持下列配置:

分发 体系结构 编译器 JDK Gradle Package
Android 8.0 (API 26) to 14 (API 34) arm64-v8a , x86_64 , x86 ,和 armeabi-v7a Clang 17.0.2 (NDK r26b 或 26.1.10909125) JDK 17 Gradle 8.3 和 AGP 7.4.1 Multi-ABI APK s and AAB s

注意: Multi-ABI builds are available only when using CMake. For more information, see CMake Android Multi-ABIs .

注意: It's recommended that Qt apps use the same NDK r26b version used for building these official Qt for Android libraries to avoid missing symbol errors.

Target Devices used in Automated Testing
设备 OS 版本 体系结构 Form Factor
Pixel 2 Android 11 (API 30) arm64_v8a 移动
Pixel 2 XL Android 11 (API 30) arm64_v8a 移动
Pixel 4 Android 10 (API 29) armv7 移动
Pixel 4A Android 12 (API 31) armv7, arm64_v8a 移动
Pixel 6 Android 13 (API 33) arm64_v8a 移动
Pixel 6 Pro Android 12 (API 31) arm64_v8a 移动
Pixel 6a Android 14 (API 34) arm64_v8a 移动
Pixel 7 Android 13 (API 33) arm64_v8a 移动
Pixel 7 Pro Android 13 (API 33) arm64_v8a 移动
Pixel 7a Android 14 (API 34) arm64_v8a 移动
Samsung Galaxy S10 Android 9 (API 28) armv7, arm64_v8a 移动
Samsung Galaxy S21 Android 12 (API 31) armv7, arm64_v8a 移动
Samsung Galaxy Tab S4 Android 10 (API 29) armv7, arm64_v8a Tablet
Nothing Phone 1 Android 14 [UP1A.231005.007] (API 34) arm64_v8a 移动
Motorola Moto G5 Plus Android 8 [UP1A.230519.001] (API 27) arm64_v8a 移动

注意: Qt for Android support is inclusive of but not limited to these devices.

注意: The above table is accurate at the time of this Qt patch release only. It may change during the patch release cycle and should only be used as a reference for what the Qt Company can rapidly reproduce bugs on.

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:

为 Android 添加 OpenSSL 支持

How to package OpenSSL libraries with a Qt for Android application.

Android 平台注意事项

Information particular to building and running Qt applications on Android.

Android 服务

Provides information about Android Services support in Qt.

移植到 Android

Provides instructions to port your existing Qt application to Android.

发布到 Google Play

Provides instructions to prepare your application for publishing.

Qt for Android CMake Configuration

Information regarding CMake and Android platform APIs.

Qt for Android Environment Variables

Lists some useful environment variables used by the Qt For Android toolchain.

支持谷歌 Emoji 字体策略

Guide for Supporting Google Emoji Font Policy using QML or C++.

第 3 方 Android 库

Instructions on including third-party Android libraries in an application.

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.

Qt for Android 快速入门