QAmbientLightReading Class
QAmbientLightReadingクラスは、環境光センサーからの1つの読み取り値を表します。詳細...
ヘッダー | #include <QAmbientLightReading> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
継承: | QSensorReading |
パブリックな型
enum | LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny } |
プロパティ
- lightLevel : const LightLevel
パブリック機能
QAmbientLightReading::LightLevel | lightLevel() const |
void | setLightLevel(QAmbientLightReading::LightLevel lightLevel) |
詳細説明
QAmbientLightReading ユニット
環境光センサーは、QAmbientLightReading::LightLevel enumにある定義済みの値を使用して、環境光の強度を返します。
メンバ型ドキュメント
enum QAmbientLightReading::LightLevel
この列挙型は環境光レベルを表す。
定数 | 値 | 説明 |
---|---|---|
QAmbientLightReading::Undefined | 0 | 光量は不明。 |
QAmbientLightReading::Dark | 1 | 暗い。 |
QAmbientLightReading::Twilight | 2 | 適度に暗い。 |
QAmbientLightReading::Light | 3 | 明るい(内部照明など)。 |
QAmbientLightReading::Bright | 4 | 明るい(日陰など)。 |
QAmbientLightReading::Sunny | 5 | 非常に明るい(直射日光など)。 |
物件資料
[read-only]
lightLevel : const LightLevel
このプロパティは、環境光レベルを保持する。
値は環境光を表し、QAmbientLightReading::LightLevel に由来する。
アクセス関数:
QAmbientLightReading::LightLevel | lightLevel() const |
メンバ関数ドキュメント
void QAmbientLightReading::setLightLevel(QAmbientLightReading::LightLevel lightLevel)
環境光レベルをlightLevel に設定する。
lightLevel()も参照 。
© 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.