QAbstractLight

Encapsulate a QAbstractLight object in a Qt 3D scene. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QAbstractLight

Inherited by: QDirectionalLight, QPointLight, QSpotLight

Synopsis

Functions

Slots

Signals

Detailed Description

class PySide2.Qt3DRender.Qt3DRender.QAbstractLight
PySide2.Qt3DRender.Qt3DRender.QAbstractLight.Type

Identifies the particular type of light.

Constant

Description

Qt3DRender.QAbstractLight.PointLight

Qt3DRender.QAbstractLight.DirectionalLight

Qt3DRender.QAbstractLight.SpotLight

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.color()
Return type:

PySide2.QtGui.QColor

Holds the current QAbstractLight color.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.colorChanged(color)
Parameters:

colorPySide2.QtGui.QColor

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.intensity()
Return type:

float

Holds the current QAbstractLight intensity.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.intensityChanged(intensity)
Parameters:

intensity – float

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.setColor(color)
Parameters:

colorPySide2.QtGui.QColor

Holds the current QAbstractLight color.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.setIntensity(intensity)
Parameters:

intensity – float

Holds the current QAbstractLight intensity.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.type()
Return type:

Type

The type of light.