QT_HARMONYOS_APP_ICON

HarmonyOS 애플리케이션의 아이콘입니다.

이 속성은 Qt 6.12에서 도입되었습니다.

참고: 이 속성은 기술 미리보기 단계에 있으며 향후 릴리스에서 변경될 수 있습니다.

참고: 이 속성은 HarmonyOS 플랫폼을 대상으로 하는 경우에만 사용됩니다.

애플리케이션 아이콘을 지정합니다. 값은 이미지 파일의 경로이거나 $media:<name> 리소스 참조여야 합니다. 상대 경로는 타깃의 소스 디렉터리를 기준으로 해결됩니다. 파일 경로가 지정되면 이미지가 번들의 미디어 리소스로 복사되고, 해당 이미지에 대한 $media: 참조가 생성됩니다. HAP 패키지가 빌드될 때 아이콘이 AppScope/app.json5 에 기록됩니다.

이 속성이 설정되지 않은 경우, 패키지 템플릿에 정의된 값이 유지됩니다.

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_APP_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icon.png"
)

© 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.