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) |
詳細説明
QHumidityReading 単位
湿度センサーは相対湿度をパーセントで、絶対湿度をグラム/立方メートル(g/m3)で返します。センサによっては絶対湿度をサポートしていない場合があり、その場合は0が返されます。
プロパティの説明
[read-only]
absoluteHumidity : const qreal
絶対湿度 1立方メートルあたりのグラム数で測定。絶対湿度に対応していないセンサーもありますのでご注意ください。
アクセス機能:
qreal | absoluteHumidity() const |
[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.