QCompass 類

The QCompass class is a convenience wrapper around QSensor . 更多...

頭: #include <QCompass>
qmake: QT += sensors
Since: Qt 5.1
繼承: QSensor

公共函數

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

額外繼承成員

詳細描述

The QCompass class is a convenience wrapper around QSensor .

唯一行為差異是此類正確設置類型。

此類還特徵 reading () 函數返迴 QCompassReading 而不是 QSensorReading .

有關傳感器如何工作的細節,見 QCompassReading .

另請參閱 QCompassReading .

成員函數文檔編製

QCompass:: QCompass ( QObject * parent = Q_NULLPTR)

構造傳感器作為子級對於 parent .

[虛擬] QCompass:: ~QCompass ()

銷毀傳感器。停止傳感器若尚未停止。

QCompassReading *QCompass:: reading () const

返迴用於此傳感器的讀取類。

另請參閱 QSensor::reading ().