このページでは

QHumidityReading Class

QHumidityReading クラスは、湿度センサーからの測定値を保持します。詳細...

ヘッダー: #include <QHumidityReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
継承元: QSensorReading

プロパティ

公開関数

qreal absoluteHumidity() const
qreal relativeHumidity() const
void setAbsoluteHumidity(qreal value)
void setRelativeHumidity(qreal humidity)

詳細説明

QHumidityReading の単位

湿度センサーは、相対湿度をパーセント単位で、絶対湿度をグラム毎立方メートル (g/m³) 単位で返します。一部のセンサーでは絶対湿度に対応していない場合があることに注意してください。その場合は 0 が返されます。

プロパティのドキュメント

[read-only] absoluteHumidity : qreal

絶対湿度:単位はグラム/立方メートルで測定されます。一部のセンサーでは絶対湿度の測定に対応していない場合があることにご注意ください。

アクセス機能:

qreal absoluteHumidity() const

QHumidityReading Unitsも参照してください 。

[read-only] relativeHumidity : qreal

相対湿度 パーセンテージで表示されます。

アクセス関数:

qreal relativeHumidity() const

QHumidityReading Unitsも参照してください 。

メンバ関数のドキュメント

void QHumidityReading::setAbsoluteHumidity(qreal value)

absoluteHumidity をvalue に設定します。

absoluteHumidity()も参照してください 。

void QHumidityReading::setRelativeHumidity(qreal humidity)

relativeHumidity をhumidity に設定します。

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.