Q3DLight Class
Representation of a light source in 3D space. More...
Header: | #include <Q3DLight> |
qmake: | QT += datavisualization |
Since: | QtDataVisualization 1.0 |
Instantiated By: | Light3D |
Inherits: | Q3DObject |
This class was introduced in QtDataVisualization 1.0.
Properties
- autoPosition : bool
Public Functions
Q3DLight(QObject *parent = nullptr) | |
virtual | ~Q3DLight() |
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
Signals
void | autoPositionChanged(bool autoPosition) |
Detailed Description
Q3DLight represents a monochrome light source in 3D space.
Note: Default light has isAutoPosition() true
.
Property Documentation
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
.
This property was introduced in QtDataVisualization 5.9.
Access functions:
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
Notifier signal:
void | autoPositionChanged(bool autoPosition) |
© 2024 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.