QT_HARMONYOS_MODULE_DEVICE_TYPES

HarmonyOSモジュールがサポートするデバイスタイプ。

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

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

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

モジュールがサポートする HarmonyOS デバイスタイプ識別子のリストを指定します。例:tablet 、2in1 、またはphone 。この値は、HAP パッケージのビルド時にentry/src/main/module.json5 に書き込まれます。

このプロパティが設定されていない場合、デフォルトのphone;tablet;2in1 が使用されます。

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_MODULE_DEVICE_TYPES "tablet;2in1"
)

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