Qt3DRender::QAbstractLight Class
class Qt3DRender::QAbstractLightEin QAbstractLight-Objekt in eine „ Qt 3D “-Szene einbinden. Mehr...
| Header: | #include <qabstractlight.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | Light |
| Erbt von: | Qt3DCore::QComponent |
| Vererbt an: | Qt3DRender::QDirectionalLight, „ Qt3DRender::QPointLight “ sowie Qt3DRender::QSpotLight |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Ö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 zu Mitgliedstypen
enum QAbstractLight::Type
Gibt die jeweilige Lichtart an.
| Konstant | Wert |
|---|---|
Qt3DRender::QAbstractLight::PointLight | 0 |
Qt3DRender::QAbstractLight::DirectionalLight | 1 |
Qt3DRender::QAbstractLight::SpotLight | 2 |
Eigenschaftsdokumentation
color : QColor
Enthält die aktuelle Farbe von „ QAbstractLight “.
Zugriffsfunktionen:
| QColor | color() const |
| void | setColor(const QColor &color) |
Benachrichtigungssignal:
| void | colorChanged(const QColor &color) |
intensity : float
Enthält die aktuelle Intensität von „ QAbstractLight “.
Zugriffsfunktionen:
| float | intensity() const |
| void | setIntensity(float intensity) |
Benachrichtigungssignal:
| void | intensityChanged(float intensity) |
[read-only] type : Type
Die Art des Lichts.
Zugriffsfunktionen:
| Qt3DRender::QAbstractLight::Type | type() const |
Dokumentation der Mitgliedsfunktionen
Qt3DRender::QAbstractLight::Type QAbstractLight::type() const
Enthält den aktuellen Typ von „ QAbstractLight “.
Hinweis: Getter -Funktion für den Eigenschaftstyp.
© 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.