- class QHumidityReading¶
The
QHumidityReading
class holds readings from the humidity sensor. More…Synopsis¶
Properties¶
absoluteHumidityᅟ
- Absolute humidity Measured in grams per cubic meter. Note that some sensors may not support absolute humidityrelativeHumidityᅟ
- Relative humidity Returned as a percentage
Methods¶
def
__init__()
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:
- absoluteHumidity()¶
- Return type:
float
See also
Getter of property
absoluteHumidityᅟ
.- relativeHumidity()¶
- Return type:
float
See also
Getter of property
relativeHumidityᅟ
.- setAbsoluteHumidity(value)¶
- Parameters:
value – float
Sets
absoluteHumidity
tovalue
.See also
- setRelativeHumidity(percent)¶
- Parameters:
percent – float
Sets
relativeHumidity
tohumidity
.See also