QProximityReading#
The QProximityReading
class represents one reading from the proximity sensor. More…
Synopsis#
Properties#
close
- Value indicating if something is close
Functions#
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
The proximity sensor can only indicate if an object is close or not.
The distance at which an object is considered close is device-specific. This distance may be available in the outputRanges
property.
- class PySide6.QtSensors.QProximityReading(parent)#
- Parameters:
parent –
PySide6.QtCore.QObject
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtSensors.QProximityReading.close: bool#
This property holds a value indicating if something is close..
Set to true if something is close. Set to false is nothing is close.
See also
QProximityReading_Units
- Access functions:
close
()
- PySide6.QtSensors.QProximityReading.close()#
- Return type:
bool
See also
Getter of property close
.
- PySide6.QtSensors.QProximityReading.setClose(close)#
- Parameters:
close – bool
Sets the close value to close
.
See also