In questa pagina

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à

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.

CostanteValoreDescrizione
QAmbientLightReading::Undefined0Il livello di luce è sconosciuto.
QAmbientLightReading::Dark1È buio.
QAmbientLightReading::Twilight2È moderatamente buio.
QAmbientLightReading::Light3È luminoso (ad es. luci interne).
QAmbientLightReading::Bright4C'è molta luce (ad es. ombra).
QAmbientLightReading::Sunny5C'è 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.