class QLightReading#

The QLightReading class represents one reading from the light sensor. More

Inheritance diagram of PySide6.QtSensors.QLightReading

Synopsis#

Properties#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

QLightReading Units#

The light sensor returns the intensity of the light in lux.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property luxᅟ: float#

This property holds the light level..

Measured as lux.

See also

QLightReading Units

Access functions:
__init__(parent)#
Parameters:

parentQObject

lux()#
Return type:

float

See also

setLux()

Getter of property luxᅟ .

setLux(lux)#
Parameters:

lux – float

Sets the light level to lux.

See also

lux()