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
状态:已废弃

属性

公共功能

QSkeleton(Qt3DCore::QNode *parent = nullptr)
Qt3DCore::QJoint *rootJoint() const

公共插槽

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)

Notifier 信号:

void rootJointChanged(Qt3DCore::QJoint *rootJoint)

成员函数 文档

QSkeleton::QSkeleton(Qt3DCore::QNode *parent = nullptr)

使用parent 构建一个新的 QSkeleton。

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