QT_ANDROID_APP_ICON
Android 应用的图标资源名称。
该属性自 Qt 6.9 起引入。
注意: 仅当目标平台为 Android 时,才会使用此 属性。
指定应用图标的名称,形式为 Android 可绘制资源或 MIP 图集引用。此功能仅在 `AndroidManifest.xml ` 文件包含占位符,或 `AndroidManifest.xml ` 由 Qt 管理时有效。
<application
...
android:icon="-- %%INSERT_APP_ICON%% --"
...
>您可以按以下方式使用此属性:
set_target_properties(${target} PROPERTIES
QT_ANDROID_APP_ICON "@mipmap/ic_launcher"
)或者使用可绘制资源:
set_target_properties(${target} PROPERTIES
QT_ANDROID_APP_ICON "@drawable/ic_launcher"
)© 2026 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.