QProximityReading Class

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

頭: #include <QProximityReading>
qmake: QT += sensors
Since: Qt 5.1
繼承: QSensorReading

特性

公共函數

QProximityReading (QObject * parent = DECLARE_READING(QProximityReading))
virtual ~QProximityReading ()
bool close () const
void setClose (bool close )

重實現公共函數

virtual void copyValuesFrom (QSensorReading * other ) override

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 特性。

特性文檔編製

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 .

成員函數文檔編製

QProximityReading:: QProximityReading ( QObject * parent = DECLARE_READING(QProximityReading))

Default constructs an instance of QProximityReading.

[虛擬] QProximityReading:: ~QProximityReading ()

Destroys the instance of QProximityReading. The destructor is virtual.

[override virtual] void QProximityReading:: copyValuesFrom ( QSensorReading * other )

void QProximityReading:: setClose ( bool close )

Sets the close value to close .

另請參閱 close ().