Qt3DRender::QDebugOverlay Class

class Qt3DRender::QDebugOverlay

启用场景细节的可视化叠加。更多

页眉: #include <QDebugOverlay>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: DebugOverlay
继承: Qt3DRender::QFrameGraphNode
状态:已废弃

公共函数

QDebugOverlay(Qt3DCore::QNode *parent = nullptr)

详细说明

在自定义框架图的一个分支中放置 QDebugOverlay 会使场景细节的叠加效果与场景一起渲染。

标准 QForwardRenderer 包含一个 QDebugOverlay 节点,可通过 QForwardRenderer::showDebugOverlay 属性启用。

成员函数文档

[explicit] QDebugOverlay::QDebugOverlay(Qt3DCore::QNode *parent = nullptr)

构造函数以指定的parent 创建一个实例。

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