QT_HARMONYOS_MODULE_DEVICE_TYPES

Os tipos de dispositivos compatíveis com o módulo HarmonyOS.

Essa propriedade foi introduzida no Qt 6.12.

Observação: esta propriedade está em pré-visualização tecnológica e pode sofrer alterações em versões futuras.

Observação: esta propriedade é usada apenas se o alvo for a plataforma HarmonyOS.

Especifica a lista de identificadores de tipo de dispositivo do HarmonyOS que o módulo suporta, por exemplo, tablet, 2in1 ou phone. O valor é gravado em entry/src/main/module.json5 quando o pacote HAP é compilado.

Se essa propriedade não for definida, o padrão phone;tablet;2in1 será usado.

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.