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 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 .

Explore Qt for Android

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 Quick for Android

An overview on using QML in native Android projects

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++.

The androidtestrunner Tool

Overview of the androidtestrunner tool for running Qt tests on Android

第 3 方 Android 库

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

Android Fragments

不可以使用 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.