QT_HARMONYOS_ABILITÀ_ORIENTAMENTO
La politica relativa all’orientamento dello schermo della funzionalità HarmonyOS.
Questa proprietà è stata introdotta in Qt 6.12.
Nota: questa proprietà è in fase di anteprima tecnica e potrebbe subire modifiche nelle versioni future.
Nota: questa proprietà viene utilizzata solo se si sceglie come piattaforma di destinazione HarmonyOS.
Specifica la politica di orientamento dello schermo dell'applicazione. Il valore viene scritto nel file ` entry/src/main/module.json5 ` durante la compilazione del pacchetto HAP. I valori accettati sono le stringhe di orientamento definite dallo schema ` module.json5 ` di HarmonyOS, tra cui ` auto_rotation`, ` auto_rotation_restricted`, ` landscape`, ` portrait`, ` auto_rotation_landscape`, ` auto_rotation_portrait` e ` locked`. Un valore non riconosciuto viene ignorato con un avviso durante la compilazione dell'HAP.
Se questa proprietà non è impostata, il campo viene omesso dal manifesto e viene applicato il valore predefinito del sistema.
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_ABILITY_ORIENTATION "landscape"
)© 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.