AmbientLightReading QML Type

L'élément AmbientLightReading contient la lecture la plus récente AmbientLightSensor. Plus d'informations...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

Propriétés

Description détaillée

L'élément AmbientLightReading contient la lecture la plus récente AmbientLightSensor.

Cet élément englobe la classe QAmbientLightReading. Pour plus de détails, veuillez consulter la documentation relative à QAmbientLightReading.

Cet élément ne peut pas être créé directement.

Propriété Documentation

lightLevel : LightLevel

Cette propriété contient le niveau de lumière ambiante.

Veuillez consulter le site QAmbientLightReading::lightLevel pour obtenir des informations sur cette propriété.

Notez que les constantes LightLevel sont exposées par l'intermédiaire de la classe AmbientLightReading.

AmbientLightSensor {
    onReadingChanged: {
        if (reading.lightLevel == AmbientLightReading.Dark)
            // do something
    }
}

© 2025 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.