QCompassFilter Class

The QCompassFilter class is a convenience wrapper around QSensorFilter. 更多...

头文件: #include <QCompassFilter>
qmake: QT += sensors
开始支持版本: Qt 5.1
基类: QSensorFilter

公有函数

virtual bool filter(QCompassReading *reading) = 0

详细描述

The QCompassFilter class is a convenience wrapper around QSensorFilter.

The only difference is that the filter() method features a pointer to QCompassReading instead of QSensorReading.

成员函数

[pure virtual] bool QCompassFilter::filter(QCompassReading *reading)

Called when reading changes. Returns false to prevent the reading from propagating.

参见 QSensorFilter::filter().