Q3DLight Class
Representación de una fuente de luz en el espacio 3D. Más...
| Cabecera: | #include <Q3DLight> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization)target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| Desde: | QtDataVisualization 1.0 |
| En QML: | Light3D |
| Hereda: | Q3DObject |
Propiedades
(since QtDataVisualization 5.9)autoPosition : bool
Funciones públicas
| Q3DLight(QObject *parent = nullptr) | |
| virtual | ~Q3DLight() |
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Señales
| void | autoPositionChanged(bool autoPosition) |
Descripción Detallada
Q3DLight representa una fuente de luz monocroma en el espacio 3D.
Nota: La luz por defecto tiene isAutoPosition() true.
Documentación de Propiedades
[since QtDataVisualization 5.9] autoPosition : bool
Esta propiedad mantiene si la posición de la luz sigue a la cámara automáticamente.
Nota: No tiene efecto si las sombras están activadas. Recuerde desactivar las sombras antes de establecer la posición de la luz, o será sobrescrita por el posicionamiento automático si isAutoPosition() es false.
Esta propiedad fue introducida en QtDataVisualization 5.9.
Funciones de acceso:
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Señal del notificador:
| void | autoPositionChanged(bool autoPosition) |
© 2026 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.