QT_HARMONYOS_MODULE_DEVICE_TYPES

Los tipos de dispositivos compatibles con el módulo de HarmonyOS.

Esta propiedad se introdujo en Qt 6.12.

Nota: Esta propiedad se encuentra en fase de vista previa tecnológica y puede sufrir cambios en futuras versiones.

Nota: Esta propiedad solo se utiliza si se dirige a la plataforma HarmonyOS.

Especifica la lista de identificadores de tipo de dispositivo de HarmonyOS que admite el módulo; por ejemplo, tablet, 2in1 o phone. El valor se escribe en entry/src/main/module.json5 cuando se compila el paquete HAP.

Si no se configura esta propiedad, se utiliza el valor por defecto 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.