QAmbientLightReading Class
La clase `QAmbientLightReading` representa una lectura del sensor de luz ambiental. Más información...
| Encabezado: | #include <QAmbientLightReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Heredado de: | 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 de lectura de luz ambiental de QAmbientLight
El sensor de luz ambiental devuelve la intensidad de la luz ambiental utilizando los valores predefinidos que se encuentran en la enumeración « QAmbientLightReading::LightLevel ».
Documentación sobre los tipos de miembros
enum QAmbientLightReading::LightLevel
Esta enumeración representa el nivel de luz ambiental.
| Constante | Valor | Descripción |
|---|---|---|
QAmbientLightReading::Undefined | 0 | Se desconoce el nivel de luz. |
QAmbientLightReading::Dark | 1 | Está oscuro. |
QAmbientLightReading::Twilight | 2 | Está moderadamente oscuro. |
QAmbientLightReading::Light | 3 | Hay luz (p. ej., luces interiores). |
QAmbientLightReading::Bright | 4 | Hay mucha luz (p. ej., sombra). |
QAmbientLightReading::Sunny | 5 | Hay mucha luz (p. ej., luz solar directa). |
Documentación de la propiedad
[read-only] lightLevel : LightLevel
Esta propiedad contiene el nivel de luz ambiental.
El valor representa la luz ambiental y procede de QAmbientLightReading::LightLevel.
Funciones de acceso:
| QAmbientLightReading::LightLevel | lightLevel() const |
Véase también QAmbientLightReading Units.
Documentación de las funciones de 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.