QLightSensor

The QLightSensor class is a convenience wrapper around QSensor . More

Inheritance diagram of PySide2.QtSensors.QLightSensor

Synopsis

Functions

Signals

Detailed Description

The only behavioural difference is that this class sets the type properly.

This class also features a reading() function that returns a QLightReading instead of a QSensorReading .

For details about how the sensor works, see QLightReading .

See also

QLightReading

class QLightSensor([parent=Q_NULLPTR])
param parent

QObject

Construct the sensor as a child of parent .

PySide2.QtSensors.QLightSensor.type
PySide2.QtSensors.QLightSensor.fieldOfView()
Return type

qreal

See also

setFieldOfView()

PySide2.QtSensors.QLightSensor.fieldOfViewChanged(fieldOfView)
Parameters

fieldOfViewqreal

PySide2.QtSensors.QLightSensor.setFieldOfView(fieldOfView)
Parameters

fieldOfViewqreal

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

See also

fieldOfView()