QAmbientLightReading Class
La classe QAmbientLightReading rappresenta una singola lettura del sensore di luce ambientale. Per saperne di più...
| Intestazione: | #include <QAmbientLightReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Eredita da: | QSensorReading |
Tipi pubblici
| enum | LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny } |
Proprietà
- lightLevel : LightLevel
Funzioni pubbliche
| QAmbientLightReading::LightLevel | lightLevel() const |
| void | setLightLevel(QAmbientLightReading::LightLevel lightLevel) |
Descrizione dettagliata
Unità di misura di QAmbientLightReading
Il sensore di luce ambientale restituisce l'intensità della luce ambientale utilizzando i valori predefiniti presenti nell'enumerazione QAmbientLightReading::LightLevel.
Documentazione sui tipi dei membri
enum QAmbientLightReading::LightLevel
Questa enumerazione rappresenta il livello di luce ambientale.
| Costante | Valore | Descrizione |
|---|---|---|
QAmbientLightReading::Undefined | 0 | Il livello di luce è sconosciuto. |
QAmbientLightReading::Dark | 1 | È buio. |
QAmbientLightReading::Twilight | 2 | È moderatamente buio. |
QAmbientLightReading::Light | 3 | È luminoso (ad es. luci interne). |
QAmbientLightReading::Bright | 4 | C'è molta luce (ad es. ombra). |
QAmbientLightReading::Sunny | 5 | C'è molta luce (ad es. luce solare diretta). |
Documentazione relativa all'immobile
[read-only] lightLevel : LightLevel
Questa proprietà contiene il livello di luce ambientale.
Il valore rappresenta la luce ambientale e proviene da QAmbientLightReading::LightLevel.
Funzioni di accesso:
| QAmbientLightReading::LightLevel | lightLevel() const |
Vedi anche QAmbientLightReading Units.
Documentazione delle funzioni membro
void QAmbientLightReading::setLightLevel(QAmbientLightReading::LightLevel lightLevel)
Imposta il livello di luce ambientale su lightLevel.
Vedi anche lightLevel().
© 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.