Qt3DRender::QAbstractLight Class
class Qt3DRender::QAbstractLightEncapsula un objeto QAbstractLight en una escena Qt 3D. Más...
| Cabecera: | #include <QAbstractLight> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | Light |
| Hereda de: | Qt3DCore::QComponent |
| Heredado de: | Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, y Qt3DRender::QSpotLight |
| Estado: | Deprecated |
Tipos públicos
| enum | Type { PointLight, DirectionalLight, SpotLight } |
Propiedades
Funciones públicas
Ranuras públicas
| void | setColor(const QColor &color) |
| void | setIntensity(float intensity) |
Señales
| void | colorChanged(const QColor &color) |
| void | intensityChanged(float intensity) |
Documentación de los tipos de miembros
enum QAbstractLight::Type
Identifica el tipo concreto de luz.
| Constante | Valor |
|---|---|
Qt3DRender::QAbstractLight::PointLight | 0 |
Qt3DRender::QAbstractLight::DirectionalLight | 1 |
Qt3DRender::QAbstractLight::SpotLight | 2 |
Propiedad Documentación
color : QColor
Mantiene el color actual de QAbstractLight.
Funciones de acceso:
| QColor | color() const |
| void | setColor(const QColor &color) |
Señal de aviso:
| void | colorChanged(const QColor &color) |
intensity : float
Mantiene la intensidad actual de QAbstractLight.
Funciones de acceso:
| float | intensity() const |
| void | setIntensity(float intensity) |
Señal de aviso:
| void | intensityChanged(float intensity) |
[read-only] type : Type
El tipo de luz.
Funciones de acceso:
| Qt3DRender::QAbstractLight::Type | type() const |
Documentación de las funciones miembro
Qt3DRender::QAbstractLight::Type QAbstractLight::type() const
Contiene el tipo actual de QAbstractLight.
Nota: Función Getter para el tipo de propiedad.
© 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.