The Android app's icon resource name.
该特性在 Qt 6.9 引入。
注意: 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"
)