OrientationReading QML Type

오리엔테이션 읽기 요소에는 가장 최근의 OrientationSensor 읽기가 저장됩니다. 더 보기...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

속성

상세 설명

오리엔테이션 읽기 요소는 가장 최근의 OrientationSensor 읽기를 보유합니다.

이 요소는 QOrientationReading 클래스를 래핑합니다. 자세한 내용은 QOrientationReading 문서를 참조하세요.

이 요소는 직접 생성할 수 없습니다.

속성 문서

orientation : Orientation

이 속성은 디바이스의 방향을 저장합니다.

이 속성에 대한 자세한 내용은 QOrientationReading::orientation 을 참조하세요.

오리엔테이션 상수는 OrientationReading 클래스를 통해 노출됩니다.

OrientationSensor {
    onReadingChanged: {
        if (reading.orientation == OrientationReading.TopUp)
            // do something
    }
}

© 2025 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.