Qt3DCore::QSkeleton Class
class Qt3DCore::QSkeleton存储用于带皮肤网格的骨骼的数据。更多...
| 头文件: | #include <QSkeleton> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| 在 QML 中: | Skeleton |
| 继承自: | Qt3DCore::QAbstractSkeleton |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
属性
- rootJoint : Qt3DCore::QJoint*
公共函数
公共槽位
| void | setRootJoint(Qt3DCore::QJoint *rootJoint) |
信号
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
详细说明
若需手动创建骨骼关节以配合蒙皮网格使用,请使用 QSkeleton。此功能主要面向开发编辑器、工具或动态骨骼的用户。通常情况下,Qt 3D 应用程序会直接调用在 Blender 等数字内容创作工具中生成的现有骨骼和蒙皮网格。 关于此用例,请参阅QSkeletonLoader 。
属性文档
rootJoint : Qt3DCore::QJoint*
保存构成骨骼的关节层次结构的根节点。
访问函数:
| Qt3DCore::QJoint * | rootJoint() const |
| void | setRootJoint(Qt3DCore::QJoint *rootJoint) |
通知器信号:
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
© 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.