QHumidityReading

The QHumidityReading class holds readings from the humidity sensor. More

Inheritance diagram of PySide2.QtSensors.QHumidityReading

Synopsis

Functions

Detailed Description

QHumidityReading Units

The humidity sensor returns the relative humidity as a percentage, and absolute humidity in grams per cubic meter (g/m3). Note that some sensors may not support absolute humidity, 0 will be returned in this case.

class PySide2.QtSensors.QHumidityReading(parent)
Parameters:

parentPySide2.QtCore.QObject

PySide2.QtSensors.QHumidityReading.absoluteHumidity()
Return type:

float

This property holds Absolute humidity Measured in grams per cubic meter. Note that some sensors may not support absolute humidity..

See also

QHumidityReading Units

PySide2.QtSensors.QHumidityReading.relativeHumidity()
Return type:

float

This property holds Relative humidity Returned as a percentage..

See also

QHumidityReading Units

PySide2.QtSensors.QHumidityReading.setAbsoluteHumidity(value)
Parameters:

value – float

Sets absoluteHumidity to value .

PySide2.QtSensors.QHumidityReading.setRelativeHumidity(percent)
Parameters:

percent – float

Sets relativeHumidity to humidity .