内容表

上一话题

QDistanceFilter

下一话题

QDistanceSensor

QDistanceReading

QDistanceReading class holds distance reading in cm from the proximity sensor. 更多

Inheritance diagram of PySide2.QtSensors.QDistanceReading

概要

函数

详细描述

QDistanceReading class 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.

QDistanceReading 单位

距离以厘米为单位度量

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.

class QDistanceReading ( parent )
参数

parent QObject

PySide2.QtSensors.QDistanceReading. distance ( )
返回类型

qreal

另请参阅

setDistance()

PySide2.QtSensors.QDistanceReading. setDistance ( distance )
参数

distance qreal

将距离设为 distance .

另请参阅

distance()