Sur cette page

QProximityReading Class

La classe QProximityReading représente une lecture du capteur de proximité. Plus d'informations...

En-tête : #include <QProximityReading>
CMake : find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake : QT += sensors
Héritages : QSensorReading

Propriétés

Fonctions publiques

bool close() const
void setClose(bool close)

Description détaillée

Le capteur de proximité peut uniquement indiquer si un objet est proche ou non.

La distance à laquelle un objet est considéré comme proche est spécifique à l'appareil. Cette distance peut être disponible dans la propriété QSensor::outputRanges.

Documentation sur les propriétés

[read-only] close : bool

Cette propriété contient une valeur indiquant si un objet est proche.

La valeur "true" est attribuée si quelque chose est proche. La valeur false est attribuée si rien n'est proche.

Fonctions d'accès :

bool close() const

Voir également QProximityReading_Units.

Documentation sur les fonctions membres

void QProximityReading::setClose(bool close)

Fixe la valeur de clôture à close.

Voir aussi 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.