- class QProximityReading¶
The
QProximityReading
class represents one reading from the proximity sensor. More…Synopsis¶
Properties¶
closeᅟ
- Value indicating if something is close
Methods¶
def
__init__()
def
close()
def
setClose()
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.Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property 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()¶
- Return type:
bool
See also
Getter of property
closeᅟ
.- setClose(close)¶
- Parameters:
close – bool
Sets the close value to
close
.See also