このページでは

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 : qreal
  • y : qreal
  • z : qreal

公開関数

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

詳細な説明

QAccelerometerReading Units

値の単位はメートル毎秒の二乗です。軸の配置は以下の通りです。

x、y、zの各加速度軸が正と負の両方向に、全6方向に延びている装置

机の上に上面を上にして静止しているモノブロックデバイスは、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 。

メンバ関数のドキュメント

void QAccelerometerReading::setX(qreal x)

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

x()も参照してください 。

void QAccelerometerReading::setY(qreal y)

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

y()も参照してください 。

void QAccelerometerReading::setZ(qreal z)

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

z()も参照してください 。

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