このページでは

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.