QAmbientLightReading

The QAmbientLightReading class represents one reading from the ambient light sensor. More

Inheritance diagram of PySide6.QtSensors.QAmbientLightReading

Synopsis

Functions

Detailed Description

QAmbientLightReading Units

The ambient light sensor returns the intensity of the ambient light using the pre-defined values found in the LightLevel enum.

class PySide6.QtSensors.QAmbientLightReading(parent)
Parameters

parentPySide6.QtCore.QObject

PySide6.QtSensors.QAmbientLightReading.LightLevel

This enum represents the ambient light level.

Constant

Description

QAmbientLightReading.Undefined

The light level is unknown.

QAmbientLightReading.Dark

It is dark.

QAmbientLightReading.Twilight

It is moderately dark.

QAmbientLightReading.Light

It is light (eg. internal lights).

QAmbientLightReading.Bright

It is bright (eg. shade).

QAmbientLightReading.Sunny

It is very bright (eg. direct sunlight).

PySide6.QtSensors.QAmbientLightReading.lightLevel()
Return type

LightLevel

See also

setLightLevel()

PySide6.QtSensors.QAmbientLightReading.setLightLevel(lightLevel)
Parameters

lightLevelLightLevel

Sets the ambient light level to lightLevel.

See also

lightLevel()