Qt3DRender::QDebugOverlay Class
class Qt3DRender::QDebugOverlay启用显示场景详细信息的视觉叠加层。更多...
| 标题: | #include <qdebugoverlay.h> |
| 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 创建一个实例。
© 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.