En esta página

AmbientLightReading QML Type

El elemento «AmbientLightReading» ofrece la lectura más « AmbientLightSensor ». Más información...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Propiedades

Descripción detallada

El elemento «AmbientLightReading» contiene el valor de lectura más AmbientLightSensor.

Este elemento envuelve la clase « QAmbientLightReading ». Para más detalles, consulta la documentación de « QAmbientLightReading ».

Este elemento no se puede crear directamente.

Documentación de propiedades

lightLevel : LightLevel

Esta propiedad mantiene el nivel de luz ambiental.

Consulta QAmbientLightReading::lightLevel para obtener información sobre esta propiedad.

Ten en cuenta que las constantes de LightLevel están disponibles 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.