Qt for Android

Qt for Android 使 Qt 5 应用程序能够运行在 Android 设备上。支持所有 Qt 模块 (必需和附件),除以下外:

  • Qt WebEngine
  • Qt Serial Port
  • Qt Virtual Keyboard
  • 特定平台 Extras:Qt Mac Extras、Qt Windows Extras 及 Qt X11 Extras

支持下列配置:

支持的配置

平台版本 体系结构 编译器 构建环境
Android 5.0 或更高版本 (即 API Level 21 及以上) armv7a and x86 , arm64-v8 and x86_64 由 Google 提供的 Clang , MinGW 8.1 RHEL 8.x (x86_64) , RHEL 7.x (x86_64) , macOS 10.15 , Windows 10 21H2 (x86_64)
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 Pro Android 12 (API 31) 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
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.

下表汇总了 Qt for Android 能做什么:

  • 运行 Widget-based and QML applications on a device or an emulator.
  • 支持 材质风格 with Qt Quick Controls.
  • Handle 多媒体 content in your Qt Quick 2 applications.
  • Get sensor readings.
  • Retrieve positioning data using satellite or network information.
  • Connect and exchange data with 蓝牙 and NFC -enabled devices.
  • Integrate Java code into your application using Qt Android Extras .
  • Develop secure applications using OpenSSL library.
  • 创建 Android 服务 .
  • Create and deploy Application Package (APK) and Android App Bundle (AAB) packages using Qt Creator.

以下主题提供有关如何使用 Qt for Android 的更多细节: