QHumidityReading

The QHumidityReading class holds readings from the humidity sensor. More

Inheritance diagram of PySide6.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 PySide6.QtSensors.QHumidityReading(parent)
Parameters

parentPySide6.QtCore.QObject

PySide6.QtSensors.QHumidityReading.absoluteHumidity()
Return type

float

PySide6.QtSensors.QHumidityReading.relativeHumidity()
Return type

float

PySide6.QtSensors.QHumidityReading.setAbsoluteHumidity(value)
Parameters

value – float

Sets absoluteHumidity to value.

PySide6.QtSensors.QHumidityReading.setRelativeHumidity(percent)
Parameters

percent – float

Sets relativeHumidity to humidity.