本页内容

AbstractAnimation QML Type

Qt3D 动画的抽象基类。更多内容...

Import Statement: import Qt3D.Animation 2.12
In C++: QAbstractAnimation
Inherited By:

KeyframeAnimation, MorphingAnimation, and VertexBlendAnimation

Status: Technology preview

该类型处于技术预览阶段,内容可能会有变动。

属性

详细说明

AbstractAnimation 是所有动画的抽象基类。AbstractAnimation 无法直接实例化,而必须通过其子类来实现。AbstractAnimation 规定了所有 Qt3D 动画的通用属性,例如动画类型、当前位置和动画时长,而具体的动画实现则由子类负责。

属性文档

animationName : string

存储动画的名称。

animationType : enumeration [read-only]

存储动画的类型。

duration : real [read-only]

保存动画的持续时间。

position : real

保存动画的当前位置。

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