Representation of a light source in 3D space. More...
Header: | #include <Q3DLight> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
qmake: | QT += datavisualization |
Since: | QtDataVisualization 1.0 |
Instantiated By: | Light3D |
Inherits: | Q3DObject |
Q3DLight(QObject *parent = nullptr) | |
virtual | ~Q3DLight() |
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
void | autoPositionChanged(bool autoPosition) |
Q3DLight represents a monochrome light source in 3D space.
Note: Default light has isAutoPosition() true
.
[since QtDataVisualization 5.9]
autoPosition : boolThis 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) |
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: