OrientationReading QML Type
L'élément « OrientationReading » contient la dernière mesure de l'OrientationSensor. En savoir plus...
| Import Statement: | import QtSensors |
| Since: | QtSensors 5.0 |
| Inherits: |
Propriétés
- orientation : Orientation
Description détaillée
L'élément « OrientationReading » contient la dernière lecture de « OrientationSensor ».
Cet élément encapsule la classe « QOrientationReading ». Pour plus de détails, veuillez consulter la documentation relative à QOrientationReading.
Cet élément ne peut pas être créé directement.
Documentation des propriétés
orientation : Orientation
Cette propriété conserve l'orientation de l'appareil.
Pour plus d'informations sur cette propriété, consultez la page QOrientationReading::orientation.
Notez que les constantes d’orientation sont accessibles via la 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.