En esta página

OrientationReading QML Type

El elemento «OrientationReading» contiene el valor más reciente de « OrientationSensor ». Más información...

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, consulta la documentación de « QOrientationReading ».

Este elemento no se puede crear directamente.

Documentación de propiedades

orientation : Orientation

Esta propiedad mantiene la orientación del dispositivo.

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

Ten en cuenta que las constantes de orientación se proporcionan 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.