QCompass 类

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

额外继承成员

详细描述

QCompass class is a convenience wrapper around QSensor .

唯一行为差异是此类正确设置类型。

此类还特征 reading () 函数返回 QCompassReading 而不是 QSensorReading .

有关传感器如何工作的细节,见 QCompassReading .

另请参阅 QCompassReading .

成员函数文档编制

QCompass:: QCompass ( QObject * parent = Q_NULLPTR)

构造传感器作为子级对于 parent .

[virtual] QCompass:: ~QCompass ()

销毁传感器。停止传感器若尚未停止。

QCompassReading *QCompass:: reading () const

返回用于此传感器的读取类。

另请参阅 QSensor::reading ().