QAmbientTemperatureReading Class

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

头文件: #include <QAmbientTemperatureReading>
qmake: QT += sensors
开始支持版本: Qt 5.1
基类: QSensorReading

属性

公有函数

void setTemperature(qreal temperature)
qreal temperature() const

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QAmbientTemperatureReading class holds readings of the ambient temperature.

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

属性

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().