QLightSensor

The QLightSensor class is a convenience wrapper around QSensor . More

Inheritance diagram of PySide6.QtSensors.QLightSensor

Synopsis

Functions

Detailed Description

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

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

For details about how the sensor works, see QLightReading .

See also

QLightReading

class PySide6.QtSensors.QLightSensor([parent=None])
Parameters

parentPySide6.QtCore.QObject

Construct the sensor as a child of parent.

PySide6.QtSensors.QLightSensor.sensorType
PySide6.QtSensors.QLightSensor.fieldOfView()
Return type

float

See also

setFieldOfView()

PySide6.QtSensors.QLightSensor.fieldOfViewChanged(fieldOfView)
Parameters

fieldOfView – float

PySide6.QtSensors.QLightSensor.setFieldOfView(fieldOfView)
Parameters

fieldOfView – float

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

See also

fieldOfView()