QT_ANDROID_APP_ICON

O nome do recurso do ícone do aplicativo Android.

Essa propriedade foi introduzida no Qt 6.9.

Observação: essa propriedade é usada apenas se o destino for a plataforma Android.

Especifica o nome do ícone do aplicativo como uma referência a um drawable ou mipmap do Android. Isso só funciona se o arquivo ` AndroidManifest.xml ` contiver o placeholder ou quando o ` AndroidManifest.xml ` for gerenciado pelo Qt.

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

Você pode usar essa propriedade da seguinte maneira:

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

Ou usando drawables:

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

Veja também 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.