QT_HARMONYOS_COMPILE_SDK_VERSION

HarmonyOSアプリケーションのコンパイル用SDKのバージョン。

このプロパティは Qt 6.12 で導入されました。

注:この プロパティはテクノロジープレビュー段階にあり、将来のリリースで変更される可能性があります。

注:この プロパティは、HarmonyOSプラットフォームを対象とする場合にのみ使用されます。

HAPパッケージのビルド時に、entry/build-profile.json5 に書き込まれるコンパイルSDKバージョンのフィールドを指定します。値はそのまま代入されるため、HarmonyOSツールチェーンで想定されている形式を使用する必要があります。

このプロパティが設定されていない場合は、パッケージテンプレートで定義された値が保持されます。

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_COMPILE_SDK_VERSION "5.0.0(12)"
)

QT_HARMONYOS_COMPATIBLE_SDK_VERSIONおよびQT_HARMONYOS_TARGET_SDK_VERSIONも参照してください 。

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