Qt3DRender::QAbstractLight Class
class Qt3DRender::QAbstractLightIntégrer un objet QAbstractLight dans une scène de type « Qt 3D ». En savoir plus...
| En-tête : | #include <qabstractlight.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake : | QT += 3drender |
| En QML : | Light |
| Hérite de : | Qt3DCore::QComponent |
| Hérité par : | Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, et Qt3DRender::QSpotLight |
| Statut : | Obsolète |
Cette classe est obsolète. Nous vous déconseillons fortement de l'utiliser dans du nouveau code.
Types publics
| enum | Type { PointLight, DirectionalLight, SpotLight } |
Propriétés
Fonctions publiques
Emplacements publics
| void | setColor(const QColor &color) |
| void | setIntensity(float intensity) |
Signaux
| void | colorChanged(const QColor &color) |
| void | intensityChanged(float intensity) |
Documentation sur les types de membres
enum QAbstractLight::Type
Indique le type précis de lumière.
| Constante | Valeur |
|---|---|
Qt3DRender::QAbstractLight::PointLight | 0 |
Qt3DRender::QAbstractLight::DirectionalLight | 1 |
Qt3DRender::QAbstractLight::SpotLight | 2 |
Documentation sur la propriété
color : QColor
Contient la couleur actuelle de l'QAbstractLight.
Fonctions d'accès :
| QColor | color() const |
| void | setColor(const QColor &color) |
Signal de notification :
| void | colorChanged(const QColor &color) |
intensity : float
Contient l'intensité actuelle de l'QAbstractLight.
Fonctions d'accès :
| float | intensity() const |
| void | setIntensity(float intensity) |
Signal de notification :
| void | intensityChanged(float intensity) |
[read-only] type : Type
Le type d'éclairage.
Fonctions d'accès :
| Qt3DRender::QAbstractLight::Type | type() const |
Documentation sur les fonctions membres
Qt3DRender::QAbstractLight::Type QAbstractLight::type() const
Contient le type actuel de l'QAbstractLight.
Remarque : fonctiongetter pour la propriété type.
© 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.