QT_HARMONYOS_MODULE_DEVICE_TYPES
The device types supported by the HarmonyOS module.
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 list of HarmonyOS device-type identifiers that the module supports, for example tablet, 2in1, or phone. The value is written to entry/src/main/module.json5 when the HAP package is built.
If this property is not set, the default phone;tablet;2in1 is used.
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_MODULE_DEVICE_TYPES "tablet;2in1"
)