QPressureReading露

The QPressureReading class holds readings from the pressure sensor. More鈥�

Inheritance diagram of PySide2.QtSensors.QPressureReading

Synopsis露

Functions露

Detailed Description露

QPressureReading Units露

The pressure sensor returns atmospheric pressure values in Pascals.

class PySide2.QtSensors.QPressureReading(parent)露
Parameters:

parent 鈥� PySide2.QtCore.QObject

PySide2.QtSensors.QPressureReading.pressure()露
Return type:

float

This property holds The measured atmospheric pressure..

Returned as Pascals.

See also

QPressureReading Units

PySide2.QtSensors.QPressureReading.setPressure(pressure)露
Parameters:

pressure 鈥� float

Sets the pressure to pressure .

See also

pressure()

PySide2.QtSensors.QPressureReading.setTemperature(temperature)露
Parameters:

temperature 鈥� float

Sets the pressure sensor鈥檚 temperature to temperature .

See also

temperature()

PySide2.QtSensors.QPressureReading.temperature()露
Return type:

float

This property holds The pressure sensor鈥檚 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 isFeatureSupported() with the PressureSensorTemperature flag to determine its availability.