QPressureReading Class
QPressureReading 클래스는 압력 센서에서 측정된 값을 저장합니다. 더 보기...
| 헤더: | #include <QPressureReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| 상속: | QSensorReading |
속성
- pressure : qreal
- temperature : qreal
공개 함수
| qreal | pressure() const |
| void | setPressure(qreal pressure) |
| void | setTemperature(qreal temperature) |
| qreal | temperature() const |
속성 설명
[read-only] pressure : qreal
이 속성에는 측정된 대기압 값이 저장됩니다.
단위는 파스칼(Pa)로 반환됩니다.
액세스 함수:
| 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.