QAmbientTemperatureReading Class

The QAmbientTemperatureReading class holds readings of the ambient temperature. 更多...

頭: #include <QAmbientTemperatureReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
繼承: QSensorReading

特性

公共函數

void setTemperature (qreal temperature )
qreal temperature () const

詳細描述

The ambient (room) temperature is the temperature in degree Celsius.

特性文檔編製

[read-only] temperature : const qreal

This property holds the ambient temperature

Measured in degree Celsius.

訪問函數:

qreal temperature () const

成員函數文檔編製

void QAmbientTemperatureReading:: setTemperature ( qreal temperature )

Sets ambient temperature to temperature .

另請參閱 temperature ().