QHumidityReading Class
La classe QHumidityReading contiene i valori rilevati dal sensore di umidità. Per saperne di più...
| Intestazione: | #include <QHumidityReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Eredita: | QSensorReading |
Proprietà
- absoluteHumidity : qreal
- relativeHumidity : qreal
Funzioni pubbliche
| qreal | absoluteHumidity() const |
| qreal | relativeHumidity() const |
| void | setAbsoluteHumidity(qreal value) |
| void | setRelativeHumidity(qreal humidity) |
Descrizione dettagliata
Unità di misura della lettura dell'umidità
Il sensore di umidità restituisce l'umidità relativa in percentuale e l'umidità assoluta in grammi per metro cubo (g/m³). Si noti che alcuni sensori potrebbero non supportare l'umidità assoluta; in tal caso verrà restituito il valore 0.
Documentazione delle proprietà
[read-only] absoluteHumidity : qreal
Umidità assoluta: misurata in grammi per metro cubo. Si noti che alcuni sensori potrebbero non supportare la misurazione dell'umidità assoluta.
Funzioni di accesso:
| qreal | absoluteHumidity() const |
Vedi anche QHumidityReading Units.
[read-only] relativeHumidity : qreal
Umidità relativa: valore espresso in percentuale.
Funzioni di accesso:
| qreal | relativeHumidity() const |
Vedi anche QHumidityReading Units.
Documentazione sulle funzioni membro
void QHumidityReading::setAbsoluteHumidity(qreal value)
Imposta absoluteHumidity su value.
Vedi anche absoluteHumidity().
void QHumidityReading::setRelativeHumidity(qreal humidity)
Imposta relativeHumidity su humidity.
Vedi anche relativeHumidity().
© 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.