In questa pagina

AmbientLightReading QML Type

L'elemento AmbientLightReading contiene le informazioni più AmbientLightSensor sulla lettura. Per saperne di più...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Proprietà

Descrizione dettagliata

L'elemento AmbientLightReading contiene il valore di lettura più AmbientLightSensor.

Questo elemento racchiude la classe " QAmbientLightReading ". Per ulteriori dettagli, consultare la documentazione relativa a QAmbientLightReading.

Questo elemento non può essere creato direttamente.

Documentazione delle proprietà

lightLevel : LightLevel

Questa proprietà mantiene il livello di luce ambientale.

Per informazioni su questa proprietà, consultare QAmbientLightReading::lightLevel.

Si noti che le costanti LightLevel sono disponibili tramite la classe 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.