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.