OrientationReading QML Type
O elemento `OrientationReading` contém a leitura mais recente de ` OrientationSensor `. Mais...
| Import Statement: | import QtSensors |
| Since: | QtSensors 5.0 |
| Inherits: |
Propriedades
- orientation : Orientation
Descrição detalhada
O elemento OrientationReading contém a leitura mais recente de OrientationSensor.
Este elemento envolve a classe ` QOrientationReading `. Consulte a documentação em QOrientationReading para obter mais detalhes.
Este elemento não pode ser criado diretamente.
Documentação da propriedade
orientation : Orientation
Essa propriedade armazena a orientação do dispositivo.
Consulte QOrientationReading::orientation para obter informações sobre essa propriedade.
Observe que as constantes de orientação são disponibilizadas por meio da classe OrientationReading.
OrientationSensor {
onReadingChanged: {
if (reading.orientation == OrientationReading.TopUp)
// do something
}
}© 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.