Sur cette page

OrientationReading QML Type

L'élément OrientationReading contient la lecture la plus récente de OrientationSensor. Plus d'informations...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Propriétés

Description détaillée

L'élément OrientationReading contient la lecture la plus récente de OrientationSensor.

Cet élément englobe la classe QOrientationReading. Pour plus de détails, veuillez consulter la documentation relative à QOrientationReading.

Cet élément ne peut pas être créé directement.

Documentation sur les propriétés

orientation : Orientation

Cette propriété indique l'orientation de l'appareil.

Veuillez consulter QOrientationReading::orientation pour plus d'informations sur cette propriété.

Notez que les constantes d'orientation sont exposées par l'intermédiaire de 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.