QAbstractLight¶
Encapsulate a
QAbstractLight
object in a Qt 3D scene. More…
Inherited by: QDirectionalLight, QPointLight, QSpotLight
Synopsis¶
Slots¶
def
setColor
(color)def
setIntensity
(intensity)
Signals¶
def
colorChanged
(color)def
intensityChanged
(intensity)
Detailed Description¶
-
class
PySide2.Qt3DRender.
QAbstractLight
¶
-
PySide2.Qt3DRender.QAbstractLight.
Type
¶ Identifies the particular type of light.
Constant
Description
Qt3DRender.QAbstractLight.PointLight
Qt3DRender.QAbstractLight.DirectionalLight
Qt3DRender.QAbstractLight.SpotLight
-
PySide2.Qt3DRender.QAbstractLight.
color
()¶ - Return type
Holds the current
QAbstractLight
color.
-
PySide2.Qt3DRender.QAbstractLight.
colorChanged
(color)¶ - Parameters
color –
PySide2.QtGui.QColor
-
PySide2.Qt3DRender.QAbstractLight.
intensity
()¶ - Return type
float
Holds the current
QAbstractLight
intensity.
-
PySide2.Qt3DRender.QAbstractLight.
intensityChanged
(intensity)¶ - Parameters
intensity – float
-
PySide2.Qt3DRender.QAbstractLight.
setColor
(color)¶ - Parameters
color –
PySide2.QtGui.QColor
Holds the current
QAbstractLight
color.
-
PySide2.Qt3DRender.QAbstractLight.
setIntensity
(intensity)¶ - Parameters
intensity – float
Holds the current
QAbstractLight
intensity.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.