class 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

Methods

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.

Note

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

property 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 relativeHumidityᅟ: float

This property holds Relative humidity Returned as a percentage..

See also

QHumidityReading Units

Access functions:
__init__(parent)
Parameters:

parentQObject

absoluteHumidity()
Return type:

float

Getter of property absoluteHumidityᅟ .

relativeHumidity()
Return type:

float

Getter of property relativeHumidityᅟ .

setAbsoluteHumidity(value)
Parameters:

value – float

Sets absoluteHumidity to value.

setRelativeHumidity(percent)
Parameters:

percent – float

Sets relativeHumidity to humidity.