QAmbientLightFilter

The QAmbientLightFilter class is a convenience wrapper around QSensorFilter . More

Inheritance diagram of PySide2.QtSensors.QAmbientLightFilter

Detailed Description

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

class PySide2.QtSensors.QAmbientLightFilter
PySide2.QtSensors.QAmbientLightFilter.filter(reading)
Parameters:

readingPySide2.QtSensors.QAmbientLightReading

Return type:

bool

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

See also

filter()