QAbstractLight Class
class Qt3DRender::QAbstractLightKapselt ein QAbstractLight Objekt in einer Qt 3D Szene. Mehr...
Kopfzeile: | #include <QAbstractLight> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
In QML: | Light |
Vererbt: | Qt3DCore::QComponent |
Vererbt von: | Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, und Qt3DRender::QSpotLight |
Status: | Veraltet |
Öffentliche Typen
enum | Type { PointLight, DirectionalLight, SpotLight } |
Eigenschaften
Öffentliche Funktionen
Öffentliche Slots
void | setColor(const QColor &color) |
void | setIntensity(float intensity) |
Signale
void | colorChanged(const QColor &color) |
void | intensityChanged(float intensity) |
Dokumentation der Mitgliedstypen
enum QAbstractLight::Type
Kennzeichnet die jeweilige Lichtart.
Konstante | Wert |
---|---|
Qt3DRender::QAbstractLight::PointLight | 0 |
Qt3DRender::QAbstractLight::DirectionalLight | 1 |
Qt3DRender::QAbstractLight::SpotLight | 2 |
Eigenschaft Dokumentation
color : QColor
Speichert die aktuelle Farbe QAbstractLight.
Zugriffsfunktionen:
QColor | color() const |
void | setColor(const QColor &color) |
Melder-Signal:
void | colorChanged(const QColor &color) |
intensity : float
Speichert die aktuelle QAbstractLight Intensität.
Zugriffsfunktionen:
float | intensity() const |
void | setIntensity(float intensity) |
Melder-Signal:
void | intensityChanged(float intensity) |
[read-only]
type : const Type
Die Art des Lichts.
Zugriffsfunktionen:
Qt3DRender::QAbstractLight::Type | type() const |
Dokumentation der Mitgliedsfunktionen
Qt3DRender::QAbstractLight::Type QAbstractLight::type() const
Enthält den aktuellen QAbstractLight Typ.
Hinweis: Getter-Funktion für Eigenschaftstyp.
© 2025 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.