QCompass Class

QCompass クラスは、QSensor の便利なラッパーです。詳細...

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

パブリック関数

QCompass(QObject *parent = nullptr)
virtual ~QCompass()
QCompassReading *reading() const

詳細説明

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

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

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

QCompassReadingも参照

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

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

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

[virtual noexcept] QCompass::~QCompass()

センサーを破壊する。センサーがまだ停止していなければ停止する。

QCompassReading *QCompass::reading() const

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

QSensor::reading()も参照

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