QAmbientLightReading Class
La clase QAmbientLightReading representa una lectura del sensor de luz ambiental. Más...
| Cabecera: | #include <QAmbientLightReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors)target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Hereda: | QSensorReading |
Tipos públicos
| enum | LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny } |
Propiedades
- lightLevel : LightLevel
Funciones públicas
| QAmbientLightReading::LightLevel | lightLevel() const |
| void | setLightLevel(QAmbientLightReading::LightLevel lightLevel) |
Descripción Detallada
Unidades QAmbientLightReading
El sensor de luz ambiental devuelve la intensidad de la luz ambiental utilizando los valores predefinidos que se encuentran en el enum QAmbientLightReading::LightLevel.
Documentación de tipos de miembros
enum QAmbientLightReading::LightLevel
Este enum representa el nivel de luz ambiental.
| Constante | Valor | Descripción |
|---|---|---|
QAmbientLightReading::Undefined | 0 | El nivel de luz es desconocido. |
QAmbientLightReading::Dark | 1 | Es oscuro. |
QAmbientLightReading::Twilight | 2 | Está moderadamente oscuro. |
QAmbientLightReading::Light | 3 | Es claro (p. ej. luces internas). |
QAmbientLightReading::Bright | 4 | Hay mucha luz (por ejemplo, sombra). |
QAmbientLightReading::Sunny | 5 | Hay mucha luz (por ejemplo, luz solar directa). |
Documentación del inmueble
[read-only] lightLevel : LightLevel
Esta propiedad contiene el nivel de luz ambiental.
El valor representa la luz ambiente y proviene de QAmbientLightReading::LightLevel.
Funciones de acceso:
| QAmbientLightReading::LightLevel | lightLevel() const |
Véase también QAmbientLightReading Units.
Documentación de las funciones miembro
void QAmbientLightReading::setLightLevel(QAmbientLightReading::LightLevel lightLevel)
Establece el nivel de luz ambiental en lightLevel.
Véase también 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.