QLightReading Class

The QLightReading class represents one reading from the light sensor. 更多...

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

属性

  • lux : const qreal

公有函数

qreal lux() const
void setLux(qreal lux)

其他继承的成员

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

详细描述

The QLightReading class represents one reading from the light sensor.

QLightReading Units

The light sensor returns the intensity of the light in lux.

属性

lux : const qreal

This property holds the light level.

Measured as lux.

访问函数:

qreal lux() const

参见 QLightReading Units.

成员函数

void QLightReading::setLux(qreal lux)

Sets the light level to lux.

参见 lux().