이 페이지에서

Qt3DRender::QAbstractLight Class

class Qt3DRender::QAbstractLight

Qt 3D 장면에서 QAbstractLight 객체를 캡슐화합니다. 더 보기...

헤더: #include <qabstractlight.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: Light
상속: Qt3DCore::QComponent
상속받는 클래스:

Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, 그리고 Qt3DRender::QSpotLight

상태: 사용 중단

이 클래스는 사용 중단되었습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

공개 유형

enum Type { PointLight, DirectionalLight, SpotLight }

속성

공개 함수

QColor color() const
float intensity() const
Qt3DRender::QAbstractLight::Type type() const

공개 슬롯

void setColor(const QColor &color)
void setIntensity(float intensity)

신호

void colorChanged(const QColor &color)
void intensityChanged(float intensity)

상세 설명

멤버 유형 문서

enum QAbstractLight::Type

특정 유형의 빛을 식별합니다.

상수값
Qt3DRender::QAbstractLight::PointLight0
Qt3DRender::QAbstractLight::DirectionalLight1
Qt3DRender::QAbstractLight::SpotLight2

속성 설명서

color : QColor

현재 ‘ QAbstractLight ’ 색상을 저장합니다.

액세스 함수:

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

알림 신호:

void colorChanged(const QColor &color)

intensity : float

현재 QAbstractLight 의 강도를 저장합니다.

액세스 함수:

float intensity() const
void setIntensity(float intensity)

알림 신호:

void intensityChanged(float intensity)

[read-only] type : Type

빛의 종류.

액세스 함수:

Qt3DRender::QAbstractLight::Type type() const

멤버 함수 문서

Qt3DRender::QAbstractLight::Type QAbstractLight::type() const

현재 ` QAbstractLight ` 유형을 저장합니다.

참고: 속성 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.