QT_ANDROID_APP_ICON

Il nome della risorsa dell'icona dell'app Android.

Questa proprietà è stata introdotta in Qt 6.9.

Nota: questa proprietà viene utilizzata solo se si sceglie come piattaforma di destinazione Android.

Specifica il nome dell'icona dell'app come riferimento a un elemento disegnabile (drawable) o a una mipmap di Android. Funziona solo se il file ` AndroidManifest.xml ` contiene il segnaposto o quando l'elemento ` AndroidManifest.xml ` è gestito da Qt.

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

È possibile utilizzare questa proprietà come segue:

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

Oppure utilizzando gli elementi grafici:

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

Vedi anche 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.