QDistanceReadingclass holds distance reading in cm from the proximity sensor. 更多 …
def
distance
()
def
setDistance
(distance)
QDistanceReadingclass holds distance reading in cm from the proximity sensor. Note: Some proximity sensor only support two values for distance, a near and far value. In this case, the sensor should report its maximum range value to represent the far state, and a lesser value to represent the near state.
距离以厘米为单位度量
The distance sensor is typically located in the front face of a device, and thus will measure the distance of an object from the device’s front face.
QDistanceReading
(
parent
)
¶
parent
–
QObject
PySide2.QtSensors.QDistanceReading.
distance
(
)
¶
qreal
另请参阅
PySide2.QtSensors.QDistanceReading.
setDistance
(
distance
)
¶
distance
–
qreal
将距离设为
distance
.
另请参阅