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 |
QPressureReading Units 를참조하세요 .
[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.