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" )
© 2024 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.