QT_ANDROID_APP_ICON | Qt Core | Qt 6.11.0
Description: The Android app's icon resource name.

- Qt 6.11
- Qt Core
- CMake Target Properties in Qt6 Core
- QT_ANDROID_APP_ICON
- Qt 6.11.0 Reference Documentation

# QT_ANDROID_APP_ICON

The Android app's icon resource name.

This property was introduced in Qt 6.9.

Note: This property is used only if targeting the Android platform.

Specifies the app's icon name as an Android drawable or mipmap reference. This only works if the `AndroidManifest.xml` file contains the placeholder or when the `AndroidManifest.xml` is managed by Qt.

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

You can use this property as follows:

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

Or using drawables:

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

See also qt_android_generate_deployment_settings().