QT_HARMONYOS_APP_ICON
The HarmonyOS application's icon.
This property was introduced in Qt 6.12.
Note: This property is in technology preview and may change in future releases.
Note: This property is used only if targeting the HarmonyOS platform.
Specifies the application icon. The value must be either a path to an image file or a $media:<name> resource reference. A relative path is resolved against the source directory of the target. When a file path is given, the image is copied into the bundle's media resources and a $media: reference is generated for it. The icon is written to AppScope/app.json5 when the HAP package is built.
If this property is not set, the value defined by the package template is kept.
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_APP_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icon.png"
)