PySide6.QtSensors.QAmbientLightReading¶
- class QAmbientLightReading¶
- The - QAmbientLightReadingclass represents one reading from the ambient light sensor. More…- Synopsis¶- Properties¶- lightLevelᅟ- The ambient light level
 - Methods¶- def - __init__()
- def - lightLevel()
- def - setLightLevel()
 - 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¶- QAmbientLightReading Units¶- The ambient light sensor returns the intensity of the ambient light using the pre-defined values found in the - LightLevelenum.- class LightLevel¶
- This enum represents the ambient light level. - Constant - Description - QAmbientLightReading.LightLevel.Undefined - The light level is unknown. - QAmbientLightReading.LightLevel.Dark - It is dark. - QAmbientLightReading.LightLevel.Twilight - It is moderately dark. - QAmbientLightReading.LightLevel.Light - It is light (eg. internal lights). - QAmbientLightReading.LightLevel.Bright - It is bright (eg. shade). - QAmbientLightReading.LightLevel.Sunny - It is very bright (eg. direct sunlight). 
 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property lightLevelᅟ: QAmbientLightReading.LightLevel¶
 - This property holds the ambient light level.. - The value represents the ambient light and comes from - LightLevel.- See also - QAmbientLightReading Units- Access functions:
 - lightLevel()¶
- Return type:
 - See also 
 - Getter of property - lightLevelᅟ.- setLightLevel(lightLevel)¶
- Parameters:
- lightLevel – - LightLevel
 
 - Sets the ambient light level to - lightLevel.- See also