移动开发

Qt 支持移动应用程序的开发和部署。

以下页面包含有关设置Qt Creator 以及如何开始使用移动平台的信息:

安卓

Qt 6 支持 Android 开发。通过Qt Creator ,您可以连接设备、开发、测试和打包 Android 应用程序。

此 Qt 版本支持以下配置:

部分说明
分布Android 9 (API 28)15 (API 35)
架构arm64-v8a,x86_64,x86, 和armeabi-v7a
编译器Clang 17.0.2(NDK r26b 和 r27c 或 26.1.10909125 和 27.2.12479018)

注意: 建议 Qt 应用程序使用与构建官方 Qt for Android 库相同的 NDK 版本,以避免符号缺失错误。在支持多个 NDK 的版本中,最新支持的 NDK 用于构建 Qt。

JDKJDK 17
GradleGradle 8.10 和 AGP 8.6.0
软件包多ABIAPKs、AABs 和AARs

注意: 只有在使用 CMake 时才可进行多重ABI 编译。更多信息,请参阅CMake Android Multi-ABI

有关支持的 Android 版本的更多信息,请参阅Qt for Android 支持的版本选择指南

iOS

通过Qt for iOS,支持为 Apple iPad 和 iPhone 开发 Qt 应用程序。Qt Creator 补充Xcode用于开发和部署。

构建环境目标平台架构
Xcode 15(iOS 17 SDK)或更高版本iOS 16 或更高版本(包括 iOS 18)armv8,arm64

注: Apple 对 iOS 的前向兼容性承诺通常可确保 Qt 应用程序在新发布的操作系统上继续良好运行。可能出现的问题将根据 Qt分支支持政策进行优先排序和计划。补丁发布通常不包括对新操作系统功能的支持。

移动开发工具

Qt Creator是用于 Qt 开发的集成开发环境。Qt Creator 可创建项目文件、测试和调试代码以及连接移动设备。对于 Android,Qt Creator 可以签署和打包 APK 文件,以便发布到 Google Play。在苹果平台上进行开发必须使用XcodeQt Creator 可以创建项目文件并连接苹果设备进行测试。

移动设计工具

设计工具可帮助用户界面开发,让设计人员创建布局和动画,并将其转换为 Qt 兼容格式。通过设计软件创建的 2D 和 3D 资产,如 Qt Design Studio等设计软件创建的 2D 和 3D 资产可集成到 Qt 应用程序中。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.