QRotationSensor Class
QRotationSensor クラスはQSensor の便利なラッパーです。さらに...
ヘッダー | #include <QRotationSensor> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
継承: | QSensor |
プロパティ
- hasZ : const bool
パブリック機能
QRotationSensor(QObject *parent = nullptr) | |
virtual | ~QRotationSensor() |
bool | hasZ() const |
QRotationReading * | reading() const |
void | setHasZ(bool hasZ) |
シグナル
void | hasZChanged(bool hasZ) |
詳細説明
唯一の動作上の違いは、このクラスが型を適切に設定することである。
また、このクラスはQSensorReading の代わりにQRotationReading を返すreading() 関数を備えている。
センサーの動作の詳細については、QRotationReading を参照してください。
QRotationReadingも参照して ください。
プロパティのドキュメント
[read-only]
hasZ : const bool
このプロパティは、z 角度が利用可能かどうかを示す値を保持する。
z が利用可能な場合は true を返す。z が利用できない場合は false を返す。
アクセス関数
bool | hasZ() const |
Notifier シグナル:
void | hasZChanged(bool hasZ) |
メンバ関数ドキュメント
[explicit]
QRotationSensor::QRotationSensor(QObject *parent = nullptr)
parent の子としてセンサーを構築する。
[virtual noexcept]
QRotationSensor::~QRotationSensor()
センサーを破壊する。センサーがまだ停止していなければ停止する。
QRotationReading *QRotationSensor::reading() const
このセンサーの読み取りクラスを返します。
QSensor::reading()も参照 。
void QRotationSensor::setHasZ(bool hasZ)
hasZバックエンドから呼び出される。デフォルトではhasZ プロパティは true なので、バックエンドは回転センサーが z 角度を報告できない場合にのみ、これを呼び出す必要があります。
hasZ()も参照してください 。
© 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.