이 페이지에서

QTiltReading Class

QTiltReading 클래스는 틸트 센서의 측정값을 저장합니다. 더 보기...

헤더: #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 : qreal

이 속성은 X축의 기울기 각도를 도 단위로 나타냅니다.

액세스 함수:

qreal xRotation() const

[read-only] yRotation : qreal

이 속성은 Y축의 기울기 각도를 도(°) 단위로 나타냅니다.

액세스 함수:

qreal yRotation() const

멤버 함수 설명서

void QTiltReading::setXRotation(qreal x)

xRotation 를 x 도로 설정합니다.

xRotation()도 참조하십시오 .

void QTiltReading::setYRotation(qreal y)

yRotation 를 y 도로 설정합니다.

yRotation()도 참조하십시오 .

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