QProximityReading Class

Die Klasse QProximityReading repräsentiert einen Messwert des Näherungssensors. Mehr...

Kopfzeile: #include <QProximityReading>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
qmake: QT += sensors
Vererbt: QSensorReading

Eigenschaften

Öffentliche Funktionen

bool close() const
void setClose(bool close)

Detaillierte Beschreibung

Der Näherungssensor kann nur anzeigen, ob sich ein Objekt in der Nähe befindet oder nicht.

Der Abstand, ab dem ein Objekt als nahe angesehen wird, ist gerätespezifisch. Dieser Abstand kann in der Eigenschaft QSensor::outputRanges verfügbar sein.

Eigenschaft Dokumentation

[read-only] close : const bool

Diese Eigenschaft enthält einen Wert, der angibt, ob etwas nahe ist.

Auf true gesetzt, wenn etwas in der Nähe ist. Wird auf false gesetzt, wenn nichts in der Nähe ist.

Zugriffsfunktionen:

bool close() const

Siehe auch QProximityReading_Units.

Dokumentation der Mitgliedsfunktionen

void QProximityReading::setClose(bool close)

Setzt den Abschlusswert auf close.

Siehe auch close().

© 2025 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.