QLight Class

(Qt3DRender::QLight)
Header: #include <QLight>
qmake: QT += 3drender
Instantiated By: Light
Inherits: Qt3DRender::QShaderData
Inherited By:

Qt3DRender::QPointLight

Public Types

enum Type { PointLight, DirectionalLight, SpotLight }

Properties

Public Functions

QLight(Qt3DCore::QNode *parent = Q_NULLPTR)
~QLight()
QColor color() const
float intensity() const
Type type() const

Public Slots

void setColor(const QColor &color)
void setIntensity(float intensity)
void setType(Type type)

Signals

void colorChanged(const QColor &color)
void intensityChanged(float intensity)
void typeChanged(Type type)

Protected Functions

QLight(QLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)
void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Member Type Documentation

enum QLight::Type

Property Documentation

color : QColor

Holds the current QLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

intensity : float

Holds the current QLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

type : Type

Access functions:

Type type() const
void setType(Type type)

Notifier signal:

void typeChanged(Type type)

Member Function Documentation

QLight::QLight(Qt3DCore::QNode *parent = Q_NULLPTR)

Constructs a new QLight with the given parent.

[protected] QLight::QLight(QLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

QLight::~QLight()

Destroys the instance of QLight.

[protected] void QLight::copy(const Qt3DCore::QNode *ref)

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qt3drender-qlight.html