QHumidityReading Class
QHumidityReading 클래스는 습도 센서의 판독값을 저장합니다. 더 보기...
헤더: | #include <QHumidityReading> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
상속합니다: | QSensorReading |
속성
- absoluteHumidity : const qreal
- relativeHumidity : const qreal
공공 기능
qreal | absoluteHumidity() const |
qreal | relativeHumidity() const |
void | setAbsoluteHumidity(qreal value) |
void | setRelativeHumidity(qreal humidity) |
상세 설명
Q습도판독 단위
습도 센서는 상대 습도를 백분율로, 절대 습도는 입방미터당 그램(g/m3)으로 반환합니다. 일부 센서는 절대 습도를 지원하지 않을 수 있으며, 이 경우 0이 반환됩니다.
속성 문서
[read-only]
absoluteHumidity : const qreal
절대 습도 입방미터당 그램 단위로 측정됩니다. 일부 센서는 절대 습도를 지원하지 않을 수 있습니다.
기능 액세스:
qreal | absoluteHumidity() const |
QHumidityReading Units 을참조하세요 .
[read-only]
relativeHumidity : const qreal
상대 습도 백분율로 반환됩니다.
함수 액세스:
qreal | relativeHumidity() const |
QHumidityReading Units 를참조하세요 .
멤버 함수 문서
void QHumidityReading::setAbsoluteHumidity(qreal value)
absoluteHumidity 을 value 으로 설정합니다.
absoluteHumidity()도 참조하세요 .
void QHumidityReading::setRelativeHumidity(qreal humidity)
relativeHumidity 을 humidity 으로 설정합니다.
relativeHumidity()도 참조하세요 .
© 2025 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.