QLightFilter Class

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

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

公有函数

virtual bool filter(QLightReading *reading) = 0

详细描述

The QLightFilter class is a convenience wrapper around QSensorFilter.

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

成员函数

[pure virtual] bool QLightFilter::filter(QLightReading *reading)

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

参见 QSensorFilter::filter().