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

プロパティ

  • x : const qreal
  • y : const qreal
  • z : const qreal

パブリック機能

void setX(qreal x)
void setY(qreal y)
void setZ(qreal z)
qreal x() const
qreal y() const
qreal z() const

詳細説明

QAccelerometerReading 単位

値のスケールはメートル毎秒の2乗です。軸は以下のように配置されています。

机の上に上向きで静止しているモノブロック装置は、Z軸(つまり屋根の方向)に約9.8の力を受けます。これは、デバイスが自由落下に対して経験する適切な加速度です。

物件資料

[read-only] x : const qreal

このプロパティは、X 軸の加速度を保持する。

値のスケールはメートル毎秒の2乗である。

アクセス関数:

qreal x() const

QAccelerometerReading Unitsも参照してください

[read-only] y : const qreal

このプロパティは、Y 軸の加速度を保持する。

値のスケールはメートル毎秒の2乗である。

アクセス関数:

qreal y() const

QAccelerometerReading Unitsも参照してください

[read-only] z : const qreal

このプロパティは、Z 軸の加速度を保持する。

値のスケールはメートル毎秒の2乗である。

アクセス関数:

qreal z() const

QAccelerometerReading Unitsも参照

メンバ関数ドキュメント

void QAccelerometerReading::setX(qreal x)

X 軸の加速度をx に設定する。

x()も参照

void QAccelerometerReading::setY(qreal y)

Y軸の加速度をy に設定する。

y()も参照

void QAccelerometerReading::setZ(qreal z)

Z 軸の加速度をz に設定する。

z()も参照

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