The QProximityReading class represents one reading from the proximity sensor. More...
Header: | #include <QProximityReading> |
CMake: | find_package(Qt6 COMPONENTS Sensors REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
qmake: | QT += sensors |
Since: | Qt 5.1 |
Inherits: | QSensorReading |
bool | close() const |
void | setClose(bool close) |
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.
[read-only]
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.
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-6.2/qproximityreading.html