このページでは

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.