QProximityReading Class
La clase QProximityReading representa una lectura del sensor de proximidad. Más...
| Cabecera: | #include <QProximityReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors)target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Hereda: | QSensorReading |
Propiedades
- close : bool
Funciones públicas
Descripción detallada
El sensor de proximidad sólo puede indicar si un objeto está cerca o no.
La distancia a la que un objeto se considera cercano es específica del dispositivo. Esta distancia puede estar disponible en la propiedad QSensor::outputRanges.
Documentación de la propiedad
[read-only] close : bool
Esta propiedad contiene un valor que indica si algo está cerca.
Se establece a true si algo está cerca. Establézcala como false si no hay nada cerca.
Funciones de acceso:
| bool | close() const |
Véase también QProximityReading_Units.
Documentación de las funciones miembro
void QProximityReading::setClose(bool close)
Establece el valor de cierre en close.
Véase también close().
© 2026 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.