QAmbientLightReading¶
The
QAmbientLightReading
class represents one reading from the ambient light sensor. More…
Synopsis¶
Functions¶
def
lightLevel
()def
setLightLevel
(lightLevel)
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 PySide2.QtSensors.QAmbientLightReading(parent)¶
- Parameters:
parent –
PySide2.QtCore.QObject
- PySide2.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).
- PySide2.QtSensors.QAmbientLightReading.lightLevel()¶
- Return type:
This property holds the ambient light level..
The value represents the ambient light and comes from
LightLevel
.See also
QAmbientLightReading Units
- PySide2.QtSensors.QAmbientLightReading.setLightLevel(lightLevel)¶
- Parameters:
lightLevel –
LightLevel
Sets the ambient light level to
lightLevel
.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.