QLightReading#

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

Inheritance diagram of PySide6.QtSensors.QLightReading

Synopsis#

Properties#

  • lux - The light level

Functions#

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.

class PySide6.QtSensors.QLightReading(parent)#
Parameters:

parentPySide6.QtCore.QObject

Note

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

property PᅟySide6.QtSensors.QLightReading.lux: float#

This property holds the light level..

Measured as lux.

See also

QLightReading Units

Access functions:
PySide6.QtSensors.QLightReading.lux()#
Return type:

float

See also

setLux()

Getter of property lux .

PySide6.QtSensors.QLightReading.setLux(lux)#
Parameters:

lux – float

Sets the light level to lux.

See also

lux()