このページでは

QOrientationSensor Class

QOrientationSensor クラスは、QSensor をラップした便利なラッパーです。詳細...

ヘッダー: #include <QOrientationSensor>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
継承元: QSensor

パブリック関数

QOrientationSensor(QObject *parent = nullptr)
virtual ~QOrientationSensor()
QOrientationReading *reading() const

詳細な説明

動作上の唯一の違いは、このクラスが型を適切に設定する点です。

また、このクラスには、QSensorReading の代わりにQOrientationReading を返すreading()関数も備わっています。

センサーの動作の詳細については、QOrientationReading を参照してください。

「QOrientationReading」も参照してください 。

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

[explicit] QOrientationSensor::QOrientationSensor(QObject *parent = nullptr)

parent の子としてセンサーを構築します。

[virtual noexcept] QOrientationSensor::~QOrientationSensor()

センサーを破壊する。センサーがまだ停止していない場合は、停止させる。

QOrientationReading *QOrientationSensor::reading() const

このセンサーの読み取りクラスを返します。

QSensor::reading()も参照してください 。

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