The AmbientLightReading element holds the most AmbientLightSensor reading. 更多...
import 语句: | import QtSensors |
Since: | QtSensors 5.0 |
继承: |
The AmbientLightReading element holds the most AmbientLightSensor reading.
此元素包裹 QAmbientLightReading 类。请参阅文档编制 QAmbientLightReading 了解细节。
This element cannot be directly created.
lightLevel : LightLevel |
This property holds the ambient light level.
Please see QAmbientLightReading::lightLevel for information about this property.
Note that LightLevel constants are exposed through the AmbientLightReading 类。
AmbientLightSensor { onReadingChanged: { if (reading.lightLevel == AmbientLightReading.Dark) // do something } }