AmbientLightReading QML Type
El elemento AmbientLightReading contiene la lectura más AmbientLightSensor. Más...
| Import Statement: | import QtSensors |
| Since: | QtSensors 5.0 |
| Inherits: |
Propiedades
- lightLevel : LightLevel
Descripción detallada
El elemento AmbientLightReading contiene la lectura más AmbientLightSensor.
Este elemento envuelve la clase QAmbientLightReading. Por favor, consulte la documentación de QAmbientLightReading para más detalles.
Este elemento no puede crearse directamente.
Documentación de propiedades
lightLevel : LightLevel
Esta propiedad contiene el nivel de luz ambiental.
Consulte QAmbientLightReading::lightLevel para obtener información sobre esta propiedad.
Tenga en cuenta que las constantes LightLevel se exponen a través de la clase AmbientLightReading.
AmbientLightSensor {
onReadingChanged: {
if (reading.lightLevel == AmbientLightReading.Dark)
// do something
}
}© 2026 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.