QProximityReading Class

The QProximityReading class represents one reading from the proximity sensor. 更多...

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

属性

公有函数

bool close() const
void setClose(bool close)

其他继承的成员

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

详细描述

The QProximityReading class represents one reading from the proximity sensor.

The proximity sensor can only indicate if an object is close or not.

The distance at which an object is considered close is device-specific. This distance may be available in the QSensor::outputRanges property.

属性

close : const bool

This property holds a value indicating if something is close.

Set to true if something is close. Set to false is nothing is close.

访问函数:

bool close() const

参见 QProximityReading_Units.

成员函数

void QProximityReading::setClose(bool close)

Sets the close value to close.

参见 close().