Q3DLight#
Representation of a light source in 3D space. More…
Synopsis#
Properties#
- autoPosition- Whether the light position follows the camera automatically
Functions#
- def - isAutoPosition()
- def - setAutoPosition(enabled)
Signals#
- def - autoPositionChanged(autoPosition)
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#
Q3DLight represents a monochrome light source in 3D space.
Note
Default light has isAutoPosition() true.
- class PySide6.QtDataVisualization.Q3DLight([parent=None])#
- Parameters:
- parent – - PySide6.QtCore.QObject
 
Constructs a new 3D light located at origin. An optional parent parameter can be given and is then passed to QObject constructor.
Note
Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.
- property PᅟySide6.QtDataVisualization.Q3DLight.autoPosition: bool#
This property holds Whether the light position follows the camera automatically..
Note
Has no effect if shadows are enabled. Remember to disable shadows before setting light’s position, or it will be overwritten by automatic positioning if isAutoPosition() is false.
- Access functions:
- setAutoPosition(enabled)
- Signal - autoPositionChanged(autoPosition)
 
- PySide6.QtDataVisualization.Q3DLight.autoPositionChanged(autoPosition)#
- Parameters:
- autoPosition – bool 
 
Notification signal of property autoPosition .
- PySide6.QtDataVisualization.Q3DLight.isAutoPosition()#
- Return type:
- bool 
 
Getter of property autoPosition .
- PySide6.QtDataVisualization.Q3DLight.setAutoPosition(enabled)#
- Parameters:
- enabled – bool 
 - See also 
Setter of property autoPosition .