The QAmbientLightFilter class is a convenience wrapper around QSensorFilter . 更多...
头: | #include <QAmbientLightFilter> |
CMake: |
find_package(Qt6 COMPONENTS Sensors REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
Since: | Qt 5.1 |
继承: | QSensorFilter |
virtual bool | filter (QAmbientLightReading * reading ) = 0 |
The only difference is that the filter () method features a pointer to QAmbientLightReading 而不是 QSensorReading .
[pure virtual]
bool
QAmbientLightFilter::
filter
(
QAmbientLightReading
*
reading
)
被调用当 reading changes. Returns false to prevent the reading from propagating.
另请参阅 QSensorFilter::filter ().