The QProximityReading class represents one reading from the proximity sensor. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Sensors) |
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
|qmake:||QT += sensors|
- List of all members, including inherited members
- QProximityReading is part of sensors_reading.
- close : const bool
|QProximityReading(QObject *parent = DECLARE_READING(QProximityReading))|
|virtual void||copyValuesFrom(QSensorReading *other) override|
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.
This property holds a value indicating if something is close.
Set to true if something is close. Set to false is nothing is close.
See also QProximityReading_Units.
Member Function Documentation
QProximityReading::QProximityReading(QObject *parent = DECLARE_READING(QProximityReading))
Default constructs an instance of QProximityReading.
Destroys the instance of QProximityReading. The destructor is virtual.
Sets the close value to close.
See also close().
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.