AmbientLightReading QML Type

앰비언트 라이트 리딩 요소는 가장 많은 AmbientLightSensor 판독값을 보유합니다. 더 보기...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

SensorReading

속성

상세 설명

앰비언트 라이트 리딩 요소는 가장 많은 AmbientLightSensor 판독값을 보유합니다.

이 요소는 QAmbientLightReading 클래스를 래핑합니다. 자세한 내용은 QAmbientLightReading 문서를 참조하세요.

이 요소는 직접 생성할 수 없습니다.

속성 문서

lightLevel : LightLevel

이 속성은 주변광 레벨을 보유합니다.

이 프로퍼티에 대한 자세한 내용은 QAmbientLightReading::lightLevel 을 참조하세요.

LightLevel 상수는 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.