QT_ANDROID_APP_ICON
Der Name der Symbolressource der Android-App.
Diese Eigenschaft wurde in Qt 6.9 eingeführt.
Hinweis: Diese Eigenschaft wird nur verwendet, wenn die Android-Plattform als Zielplattform ausgewählt ist.
Gibt den Namen des App-Symbols als Verweis auf ein Android-Drawable oder eine Mipmap an. Dies funktioniert nur, wenn die Datei „ AndroidManifest.xml “ den Platzhalter enthält oder wenn die Datei „ AndroidManifest.xml “ von Qt verwaltet wird.
<application
...
android:icon="-- %%INSERT_APP_ICON%% --"
...
>Sie können diese Eigenschaft wie folgt verwenden:
set_target_properties(${target} PROPERTIES
QT_ANDROID_APP_ICON "@mipmap/ic_launcher"
)Oder mithilfe von Drawables:
set_target_properties(${target} PROPERTIES
QT_ANDROID_APP_ICON "@drawable/ic_launcher"
)Siehe auch qt_android_generate_deployment_settings().
© 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.