PySide6.Qt3DRender.Qt3DRender.QAbstractLight¶
- class QAbstractLight¶
Encapsulate a
QAbstractLight
object in a Qt 3D scene. More…Inherited by:
QSpotLight
,QPointLight
,QDirectionalLight
Synopsis¶
Properties¶
Methods¶
def
color()
def
intensity()
def
type()
Slots¶
def
setColor()
def
setIntensity()
Signals¶
def
colorChanged()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- class Type¶
Identifies the particular type of light.
Constant
Description
Qt3DRender.QAbstractLight.PointLight
Qt3DRender.QAbstractLight.DirectionalLight
Qt3DRender.QAbstractLight.SpotLight
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.Holds the current
QAbstractLight
color.- Access functions:
Signal
colorChanged()
- property intensityᅟ: float¶
Holds the current
QAbstractLight
intensity.- Access functions:
- property typeᅟ: Qt3DRender.QAbstractLight.Type¶
The type of light.
- Access functions:
Getter of property
colorᅟ
.Notification signal of property
colorᅟ
.- intensity()¶
- Return type:
float
See also
setIntensity()
Getter of property
intensityᅟ
.- intensityChanged(intensity)¶
- Parameters:
intensity – float
Notification signal of property
intensityᅟ
.Setter of property
colorᅟ
.- setIntensity(intensity)¶
- Parameters:
intensity – float
See also
intensity()
Setter of property
intensityᅟ
.- type()¶
- Return type:
Type
Holds the current
QAbstractLight
type.Getter of property
typeᅟ
.