QT_ANDROID_APP_ICON

Nom de la ressource correspondant à 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 la plate-forme Android est ciblée.

Spécifie le nom de l'icône de l'application sous la forme d'une référence à un élément « drawable » ou à une mipmap Android. Cela ne fonctionne que si le fichier « AndroidManifest.xml » contient l'espace réservé ou lorsque la gestion de l'« AndroidManifest.xml » est assurée 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 à l'aide d'éléments graphiques :

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

Voir également 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.