QT_HARMONYOS_MODULE_DEVICE_TYPES
I tipi di dispositivo supportati dal modulo HarmonyOS.
Questa proprietà è stata introdotta in Qt 6.12.
Nota: questa proprietà è in fase di anteprima tecnologica e potrebbe subire modifiche nelle versioni future.
Nota: questa proprietà viene utilizzata solo se si sceglie come piattaforma di destinazione HarmonyOS.
Specifica l'elenco degli identificatori di tipo di dispositivo HarmonyOS supportati dal modulo, ad esempio tablet, 2in1 o phone. Il valore viene scritto in entry/src/main/module.json5 al momento della compilazione del pacchetto HAP.
Se questa proprietà non è impostata, viene utilizzato il valore predefinito 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.