QProximityReading Class
La classe QProximityReading rappresenta una singola lettura del sensore di prossimità. Per saperne di più...
| Intestazione: | #include <QProximityReading> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sensors) target_link_libraries(mytarget PRIVATE Qt6::Sensors) |
| qmake: | QT += sensors |
| Eredita da: | QSensorReading |
Proprietà
- close : bool
Funzioni pubbliche
Descrizione dettagliata
Il sensore di prossimità può solo indicare se un oggetto si trova nelle vicinanze o meno.
La distanza alla quale un oggetto viene considerato vicino varia a seconda del dispositivo. Tale distanza potrebbe essere indicata nella proprietà QSensor::outputRanges.
Documentazione delle proprietà
[read-only] close : bool
Questa proprietà contiene un valore che indica se c'è qualcosa nelle vicinanze.
Impostare su true se c'è qualcosa nelle vicinanze. Impostare su false se non c'è nulla nelle vicinanze.
Funzioni di accesso:
| bool | close() const |
Vedi anche QProximityReading_Units.
Documentazione sulle funzioni membro
void QProximityReading::setClose(bool close)
Imposta il valore di chiusura su close.
Vedi anche 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.