このページでは

QPressureReading Class

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

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

プロパティ

公開関数

qreal pressure() const
void setPressure(qreal pressure)
void setTemperature(qreal temperature)
qreal temperature() const

詳細な説明

QPressureReadingの単位

圧力センサーは、大気圧の値をパスカル単位で返します。

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

[read-only] pressure : qreal

このプロパティには、測定された気圧が格納されます。

パスカル単位で返されます。

アクセス関数:

qreal pressure() const

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

[read-only] temperature : qreal

このプロパティには、圧力センサーの温度が格納されます。

温度は摂氏で返されます。このプロパティは、サポートされている場合、圧力センサーのダイ温度を提供します。この温度は、QAmbientTemperatureSensor から報告される温度とは異なる場合がある(通常は異なる)ことに注意してください。利用可否を確認するには、QSensor::PressureSensorTemperature フラグを指定してQSensor::isFeatureSupported()を使用してください。

アクセス関数:

qreal temperature() const

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

void QPressureReading::setPressure(qreal pressure)

圧力をpressure に設定します。

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

void QPressureReading::setTemperature(qreal temperature)

圧力センサーの温度をtemperature に設定します。

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

© 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.