AmbientLightReading QML Type
AmbientLightReading 요소는 가장 AmbientLightSensor 한 읽기 방식을 구현합니다. 더 보기...
| Import Statement: | import QtSensors |
| Since: | QtSensors 5.0 |
| Inherits: |
속성
- lightLevel : LightLevel
상세 설명
AmbientLightReading 요소는 가장 최근의 AmbientLightSensor 측정값을 포함합니다.
이 요소는 ` QAmbientLightReading ` 클래스를 감쌉니다. 자세한 내용은 QAmbientLightReading 문서를 참조하십시오.
이 요소는 직접 생성할 수 없습니다.
속성 설명서
lightLevel : LightLevel
이 속성은 주변광 수준을 유지합니다.
이 속성에 대한 자세한 내용은 QAmbientLightReading::lightLevel 을 참조하십시오.
LightLevel 상수는 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.