QHumidityReading#

The QHumidityReading class holds readings from the humidity sensor. More

Inheritance diagram of PySide6.QtSensors.QHumidityReading

Synopsis#

Properties#

  • absoluteHumidity - Absolute humidity Measured in grams per cubic meter. Note that some sensors may not support absolute humidity

  • relativeHumidity - Relative humidity Returned as a percentage

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtSensors.QHumidityReading.absoluteHumidity: 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

Access functions:
property PᅟySide6.QtSensors.QHumidityReading.relativeHumidity: float#

This property holds Relative humidity Returned as a percentage..

See also

QHumidityReading Units

Access functions:
PySide6.QtSensors.QHumidityReading.absoluteHumidity()#
Return type:

float

Getter of property absoluteHumidity .

PySide6.QtSensors.QHumidityReading.relativeHumidity()#
Return type:

float

Getter of property relativeHumidity .

PySide6.QtSensors.QHumidityReading.setAbsoluteHumidity(value)#
Parameters:

value – float

Sets absoluteHumidity to value.

PySide6.QtSensors.QHumidityReading.setRelativeHumidity(percent)#
Parameters:

percent – float

Sets relativeHumidity to humidity.