QAccelerometerReading Class
QAccelerometerReading 클래스는 X, Y, Z 축을 따라의 선형 가속도를 보고합니다. 더 보기...
| 헤더: | #include <QAccelerometerReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| 상속: | QSensorReading |
속성
공개 함수
| void | setX(qreal x) |
| void | setY(qreal y) |
| void | setZ(qreal z) |
| qreal | x() const |
| qreal | y() const |
| qreal | z() const |
상세 설명
QAccelerometerReading Units
값의 단위는 초당 미터 제곱입니다. 축의 배열은 다음과 같습니다.

책상 위에 윗면이 위로 향하게 놓여 정지해 있는 모노블록 장치는 Z축 방향(즉, 천장 방향)으로 약 9.8의 힘을 받게 됩니다. 이는 장치가 자유 낙하 상태에 비해 경험하는 고유 가속도입니다.
속성 설명
[read-only] x : qreal
이 속성은 X축 방향의 가속도를 나타냅니다.
값의 단위는 초당 미터 제곱입니다.
액세스 함수:
| qreal | x() const |
QAccelerometerReading Units도 참조하십시오 .
[read-only] y : qreal
이 속성은 Y축 방향의 가속도를 나타냅니다.
값의 단위는 초당 미터 제곱입니다.
액세스 함수:
| qreal | y() const |
QAccelerometerReading Units도 참조하십시오 .
[read-only] z : qreal
이 속성은 Z축 방향의 가속도를 나타냅니다.
값의 단위는 초당 미터 제곱입니다.
액세스 함수:
| qreal | z() const |
QAccelerometerReading Units도 참조하십시오 .
© 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.