QTiltReading Class

QTiltReading 클래스는 기울기 센서의 판독값을 저장합니다. 더 보기...

Header: #include <QTiltReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
상속합니다: QSensorReading

속성

공공 기능

void setXRotation(qreal x)
void setYRotation(qreal y)
qreal xRotation() const
qreal yRotation() const

상세 설명

기울기 센서는 X 및 Y 평면을 따라 기기의 기울기 각도를 도 단위로 보고합니다.

속성 문서

[read-only] xRotation : const qreal

이 프로퍼티는 X축의 기울기 양을 도 단위로 측정합니다.

함수에 액세스합니다:

qreal xRotation() const

[read-only] yRotation : const qreal

이 프로퍼티는 Y축의 기울기 양을 도 단위로 측정합니다.

함수에 액세스합니다:

qreal yRotation() const

멤버 함수 문서

void QTiltReading::setXRotation(qreal x)

xRotationx 으로 설정합니다.

xRotation()도 참조하세요 .

void QTiltReading::setYRotation(qreal y)

yRotationy 으로 설정합니다.

yRotation()도 참조하세요 .

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