QDistanceSensorclass is a convenience wrapper aroundQSensor. 更多 …
The only behavioral difference is that this class sets the type properly.
此类还特征
reading()function that returns aQDistanceReading而不是QSensorReading.有关传感器如何工作的细节,见
QDistanceReading.另请参阅
QDistanceSensor
(
[
parent=Q_NULLPTR
]
)
¶
- param parent
QObject
构造传感器作为子级对于
parent
.
PySide2.QtSensors.QDistanceSensor.
type
¶