Qt3DRender::QAbstractLight Class
class Qt3DRender::QAbstractLightIncorporare un oggetto QAbstractLight in una scena di tipo “ Qt 3D ”. Maggiori informazioni...
| Intestazione: | #include <qabstractlight.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | Light |
| Eredita da: | Qt3DCore::QComponent |
| Ereditato da: | Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight e Qt3DRender::QSpotLight |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Tipi pubblici
| enum | Type { PointLight, DirectionalLight, SpotLight } |
Proprietà
Funzioni pubbliche
Slot pubblici
| void | setColor(const QColor &color) |
| void | setIntensity(float intensity) |
Segnali
| void | colorChanged(const QColor &color) |
| void | intensityChanged(float intensity) |
Documentazione sui tipi dei membri
enum QAbstractLight::Type
Indica il tipo specifico di luce.
| Costante | Valore |
|---|---|
Qt3DRender::QAbstractLight::PointLight | 0 |
Qt3DRender::QAbstractLight::DirectionalLight | 1 |
Qt3DRender::QAbstractLight::SpotLight | 2 |
Documentazione della proprietà
color : QColor
Contiene il colore corrente di “ QAbstractLight ”.
Funzioni di accesso:
| QColor | color() const |
| void | setColor(const QColor &color) |
Segnale di notifica:
| void | colorChanged(const QColor &color) |
intensity : float
Contiene l'intensità corrente dell'QAbstractLight.
Funzioni di accesso:
| float | intensity() const |
| void | setIntensity(float intensity) |
Segnale di notifica:
| void | intensityChanged(float intensity) |
[read-only] type : Type
Il tipo di luce.
Funzioni di accesso:
| Qt3DRender::QAbstractLight::Type | type() const |
Documentazione delle funzioni membro
Qt3DRender::QAbstractLight::Type QAbstractLight::type() const
Contiene il tipo corrente di “ QAbstractLight ”.
Nota: funzionegetter per la proprietà «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.