Q3DLight Class
3D空間における光源の表現。詳細...
ヘッダー | #include <Q3DLight> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
qmake: | QT += datavisualization |
以来: | QtDataVisualization 1.0 |
QML で: | Light3D |
継承: | Q3DObject |
プロパティ
(since QtDataVisualization 5.9)
autoPosition : bool
パブリック機能
Q3DLight(QObject *parent = nullptr) | |
virtual | ~Q3DLight() |
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
シグナル
void | autoPositionChanged(bool autoPosition) |
プロパティ ドキュメント
[since QtDataVisualization 5.9]
autoPosition : bool
このプロパティは、ライトの位置が自動的にカメラに追従するかどうかを保持します。
注意: シャドウが有効な場合は影響しません。ライトの位置を設定する前に、シャドウを無効にすることを忘れないでください。そうしないと、isAutoPosition()
がfalse
の場合、自動ポジショニングによって上書きされます。
このプロパティは QtDataVisualization 5.9 で導入されました。
アクセス関数
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
通知シグナル
void | autoPositionChanged(bool autoPosition) |
© 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.