QAbstractLight#
Encapsulate a QAbstractLight
object in a Qt 3D scene. More…
Inherited by: QSpotLight, QPointLight, QDirectionalLight
Synopsis#
Properties#
Functions#
Slots#
def
setColor
(color)def
setIntensity
(intensity)
Signals#
def
colorChanged
(color)def
intensityChanged
(intensity)
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 PySide6.Qt3DRender.Qt3DRender.QAbstractLight#
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractLight.color: PySide6.QtGui.QColor#
Holds the current QAbstractLight
color.
- Access functions:
color
()setColor
(color)Signal
colorChanged
(color)
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractLight.intensity: float#
Holds the current QAbstractLight
intensity.
- Access functions:
intensity
()setIntensity
(intensity)Signal
intensityChanged
(intensity)
- property PᅟySide6.Qt3DRender.Qt3DRender.QAbstractLight.type: Type#
The type of light.
- Access functions:
type
()
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.Type#
Identifies the particular type of light.
Constant
Description
Qt3DRender.QAbstractLight.PointLight
Qt3DRender.QAbstractLight.DirectionalLight
Qt3DRender.QAbstractLight.SpotLight
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.color()#
- Return type:
See also
Getter of property color
.
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.colorChanged(color)#
- Parameters:
color –
PySide6.QtGui.QColor
Notification signal of property color
.
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.intensity()#
- Return type:
float
See also
Getter of property intensity
.
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.intensityChanged(intensity)#
- Parameters:
intensity – float
Notification signal of property intensity
.
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.setColor(color)#
- Parameters:
color –
PySide6.QtGui.QColor
See also
Setter of property color
.
- PySide6.Qt3DRender.Qt3DRender.QAbstractLight.setIntensity(intensity)#
- Parameters:
intensity – float
See also
Setter of property intensity
.
Holds the current QAbstractLight
type.
Getter of property type
.