QPressureReading Class▲
-
Header: QPressureReading
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
-
qmake: QT += sensors
-
Inherits: QSensorReading
-
Group: QPressureReading is part of sensors_reading
Detailed Description▲
Property Documentation▲
[read-only] pressure : const qreal▲
This property holds the measured atmospheric pressure.
Returned as Pascals.
Access functions:
-
pressure() const
See Also▲
See also QPressureReading Units
[read-only] temperature : const qreal▲
This property holds the pressure sensor's temperature.
The temperature is returned in degree Celsius. This property, if supported, provides the pressure sensor die temperature. Note that this temperature may be (and usually is) different than the temperature reported from QAmbientTemperatureSensor. Use QSensor::isFeatureSupported() with the QSensor::PressureSensorTemperature flag to determine its availability.
Access functions:
-
temperature() const