内容表

上一话题

QLightReading

下一话题

QMagnetometer

QLightSensor

QLightSensor class is a convenience wrapper around QSensor . 更多

Inheritance diagram of PySide2.QtSensors.QLightSensor

概要

函数

信号

详细描述

唯一行为差异是此类正确设置类型。

此类还特征 reading() function that returns a QLightReading 而不是 QSensorReading .

有关传感器如何工作的细节,见 QLightReading .

另请参阅

QLightReading

class QLightSensor ( [ parent=Q_NULLPTR ] )
param parent

QObject

构造传感器作为子级对于 parent .

PySide2.QtSensors.QLightSensor. type
PySide2.QtSensors.QLightSensor. fieldOfView ( )
返回类型

qreal

另请参阅

setFieldOfView()

PySide2.QtSensors.QLightSensor. fieldOfViewChanged ( fieldOfView )
参数

fieldOfView qreal

PySide2.QtSensors.QLightSensor. setFieldOfView ( fieldOfView )
参数

fieldOfView qreal

Sets the field of view to fieldOfView . This is to be called from the backend.

另请参阅

fieldOfView()