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 特性。
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 .
Default constructs an instance of QProximityReading.
[虚拟]
QProximityReading::
~QProximityReading
()
Destroys the instance of QProximityReading. The destructor is virtual.
[override virtual]
void
QProximityReading::
copyValuesFrom
(
QSensorReading
*
other
)
Sets the close value to close .
另请参阅 close ().