QProximityReading Class
La clase `QProximityReading` representa una lectura del sensor de proximidad. Más información...
| Encabezado: | #include <QProximityReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Heredan de: | QSensorReading |
Propiedades
- close : bool
Funciones públicas
Descripción detallada
El sensor de proximidad solo puede indicar si hay un objeto cerca o no.
La distancia a partir de la cual se considera que un objeto está cerca varía según el dispositivo. Esta distancia puede consultarse en la propiedad « QSensor::outputRanges ».
Documentación de la propiedad
[read-only] close : bool
Esta propiedad contiene un valor que indica si hay algo cerca.
Establece el valor en «true» si hay algo cerca. Establece el valor en «false» si no hay nada cerca.
Funciones de acceso:
| bool | close() const |
Véase también QProximityReading_Units.
Documentación de funciones de 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.