Qt 3D Scene2D C++ Classes

Qt 3D Scene2D 模块提供了一种将 Quick2 qml 内容呈现为Qt 3D 纹理的方法。更多

自 6.8 版起,该模块已被弃用。我们强烈建议不要在新代码中使用该模块。

命名空间

Qt3DRender::Quick

导入 QML 类型的内部命名空间

Qt3DRender::Quick::QScene2D

该类可将 QML 渲染成纹理,然后将其用作 3D 场景的一部分。

详细说明

本模块仍在开发中,但可作为技术预览版使用。这意味着它是不稳定的,有可能发生变化,并且仅作为一种便利提供。

#include <Qt3DQuickScene2D>

要链接到相应的 C++ 库,请在您的 qmake 项目文件中添加以下内容:

QT += 3dquickscene2d

类、类型和函数在Qt3DScene2D 命名空间下声明。

概述

场景 2D

参考

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