QAmbientLightReadingclass represents one reading from the ambient light sensor. 更多 …
def
lightLevel
()
def
setLightLevel
(lightLevel)
The ambient light sensor returns the intensity of the ambient light using the pre-defined values found in the
LightLevel枚举。
QAmbientLightReading
(
parent
)
¶
parent
–
QObject
PySide2.QtSensors.QAmbientLightReading.
LightLevel
¶
This enum represents the ambient light level.
|
常量 |
描述 |
|---|---|
|
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
(
)
¶
另请参阅
PySide2.QtSensors.QAmbientLightReading.
setLightLevel
(
lightLevel
)
¶
lightLevel
–
LightLevel
Sets the ambient light level to
lightLevel
.
另请参阅