In questa pagina

OrientationReading QML Type

L'elemento "OrientationReading" contiene il valore più recente di " OrientationSensor ". Maggiori informazioni...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Proprietà

Descrizione dettagliata

L'elemento OrientationReading contiene il valore più recente di OrientationSensor.

Questo elemento racchiude la classe ` QOrientationReading `. Per ulteriori dettagli, consultare la documentazione relativa a QOrientationReading.

Questo elemento non può essere creato direttamente.

Documentazione delle proprietà

orientation : Orientation

Questa proprietà conserva l'orientamento del dispositivo.

Per informazioni su questa proprietà, consultare QOrientationReading::orientation.

Si noti che le costanti di orientamento sono disponibili tramite 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.