QPressureReading Class
QPressureReadingクラスは、圧力センサーからの読み取り値を保持します。詳細...
ヘッダー | #include <QPressureReading> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
継承: | QSensorReading |
プロパティ
- pressure : const qreal
- temperature : const qreal
パブリック機能
qreal | pressure() const |
void | setPressure(qreal pressure) |
void | setTemperature(qreal temperature) |
qreal | temperature() const |
プロパティの説明
[read-only]
pressure : const qreal
このプロパティは、測定された大気圧を保持する。
パスカルとして返される。
アクセス関数:
qreal | pressure() const |
[read-only]
temperature : const qreal
このプロパティは、圧力センサーの温度を保持する。
温度は摂氏で返される。このプロパティがサポートされている場合、圧力センサーのダイ温度を提供する。この温度は、QAmbientTemperatureSensor から報告される温度とは異なる可能性がある(通常は異なる)ことに注意してください。QSensor::isFeatureSupported() をQSensor::PressureSensorTemperature フラグとともに使用して、その可用性を判断してください。
アクセス関数:
qreal | temperature() const |
メンバー関数ドキュメント
void QPressureReading::setPressure(qreal pressure)
圧力をpressure に設定する。
pressure()も参照 。
void QPressureReading::setTemperature(qreal temperature)
圧力センサーの温度をtemperature に設定する。
temperature()も参照 。
© 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.