QAccelerometerReading Class
QAccelerometerReading 클래스는 X, Y 및 Z 축을 따라 선형 가속도를 보고합니다. 더 보기...
Header: | #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 |
상세 설명
Q가속도계판독 단위
값의 눈금은 초당 미터의 제곱입니다. 축은 다음과 같이 배열되어 있습니다.
모노블록 장치가 책상 위에 위로 향하게 놓여 있는 경우, Z축(즉, 지붕을 향해)에 약 9.8의 힘이 가해집니다. 이것이 자유낙하에 대해 장치가 경험하는 적절한 가속도입니다.
속성 문서
[read-only]
x : const qreal
이 프로퍼티는 X축의 가속도를 보유합니다.
값의 눈금은 초당 미터의 제곱입니다.
함수에 액세스합니다:
qreal | x() const |
QAccelerometerReading Units 를참조하세요 .
[read-only]
y : const qreal
이 프로퍼티는 Y축의 가속도를 보유합니다.
값의 눈금은 초당 미터의 제곱입니다.
함수에 액세스합니다:
qreal | y() const |
QAccelerometerReading Units 를참조하세요 .
[read-only]
z : const qreal
이 프로퍼티는 Z축의 가속도를 보유합니다.
값의 눈금은 초당 미터의 제곱입니다.
함수에 액세스합니다:
qreal | z() const |
QAccelerometerReading Units 를참조하세요 .
© 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.