qt_android_package_source_dir
自定义 Android 软件包模板的路径。
此属性在 Qt 6.0 中引入。
注意: 该属性仅在针对 Android 平台时使用。
指定自定义 Android 包模板的路径。Android 包模板包含
- AndroidManifest.xml 文件
- build.gradle 文件和其他 Gradle 脚本
- res/values/libs.xml 文件
该变量指定的路径可包含src
目录下的自定义 Java 类。默认情况下,androiddeployqt工具会将 Qt for Android 安装路径中的应用程序模板复制到项目的构建目录中,然后再复制此变量指定路径中的内容,覆盖任何现有文件。例如,你可以为应用程序制作一个自定义的AndroidManifest.xml
,然后将其直接放入此变量指定的目录中。
© 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.