En esta página

OrientationReading QML Type

El elemento OrientationReading contiene la lectura más reciente de OrientationSensor. Más...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Propiedades

Descripción detallada

El elemento OrientationReading contiene la lectura más reciente de OrientationSensor.

Este elemento envuelve la clase QOrientationReading. Para más detalles, consulte la documentación de QOrientationReading.

Este elemento no puede crearse directamente.

Documentación de propiedades

orientation : Orientation

Esta propiedad contiene la orientación del dispositivo.

Consulte QOrientationReading::orientation para obtener información sobre esta propiedad.

Tenga en cuenta que las constantes de orientación se exponen a través de la clase 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.