QProximityReading Class
The QProximityReading class represents one reading from the proximity sensor. More...
Header: | #include <QProximityReading> |
qmake: | QT += sensors |
Since: | Qt 5.1 |
Inherits: | QSensorReading |
Properties
- close : const bool
- 1 property inherited from QSensorReading
- 1 property inherited from QObject
Public Functions
QProximityReading(QObject *parent = DECLARE_READING(QProximityReading)) | |
virtual | ~QProximityReading() |
bool | close() const |
void | setClose(bool close) |
Reimplemented Public Functions
virtual void | copyValuesFrom(QSensorReading *other) override |
- 4 public functions inherited from QSensorReading
- 31 public functions inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
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.
Property Documentation
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.
Access functions:
bool | close() const |
See also QProximityReading_Units.
Member Function Documentation
QProximityReading::QProximityReading(QObject *parent = DECLARE_READING(QProximityReading))
Default constructs an instance of QProximityReading.
[virtual]
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.
See also close().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qproximityreading.html