QT_ANDROID_APP_ICON

Nom de la ressource de l'icône de l'application Android.

Cette propriété a été introduite dans Qt 6.9.

Remarque : cette propriété n'est utilisée que si l'application est destinée à la plate-forme Android.

Spécifie le nom de l'icône de l'application en tant que référence de dessin ou de mipmap Android. Cela ne fonctionne que si le fichier AndroidManifest.xml contient le placeholder ou si le AndroidManifest.xml est géré par Qt.

<application
    ...
    android:icon="-- %%INSERT_APP_ICON%% --"
    ...
>

Vous pouvez utiliser cette propriété comme suit :

set_target_properties(${target} PROPERTIES
    QT_ANDROID_APP_ICON "@mipmap/ic_launcher"
)

Ou en utilisant des objets à dessiner :

set_target_properties(${target} PROPERTIES
    QT_ANDROID_APP_ICON "@drawable/ic_launcher"
)

Voir aussi 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.