QAbstractLight Class

class Qt3DRender::QAbstractLight

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

헤더: #include <QAbstractLight>
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

Status: Deprecated

공용 유형

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 : const Type

조명 유형입니다.

액세스 함수:

Qt3DRender::QAbstractLight::Type type() const

멤버 함수 문서

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

현재 QAbstractLight 유형을 보유합니다.

참고: 속성 유형에 대한 게터 함수입니다.

© 2025 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.