KeyframeAnimation QML Type

为变换创建简单关键帧动画的类型。更多

Import Statement: import Qt3D.Animation 2.9
In C++: QKeyframeAnimation
Inherits:

AbstractAnimation

Status: Deprecated

属性

详细说明

KeyframeAnimation 类型实现了简单的关键帧动画,可用于制作动画Transform 。关键帧由多个定时Qt3D.Core::Transforms 组成,经过插值后应用于目标变换。关键帧之间使用 EasingCurve 来控制插值器。当设置给关键帧动画的位置小于或大于关键帧位置中定义的值时,可以设置 RepeatMode(重复模式)。

属性文档

easing : EasingCurve

保存关键帧之间插值器的缓和曲线。


endMode : enumeration

为大于上一帧位置的位置值保留重复模式。

  • 常数
  • 重复

framePositions : list<real>

保存关键帧的位置。列表中的每个位置都指定了相应关键帧的位置。数值必须以升序排列。数值可以是正数或负数,没有预定义单位。


keyframes : list<Transform>

保存关键帧动画中的关键帧列表。


startMode : enumeration

为小于第一帧位置的位置值保留重复模式。

  • 常量
  • 重复

target : Transform

保存动画应用的目标变换。


targetName : string

保存目标变换的名称。这是一个方便的属性,可以更容易地将目标变换与关键帧动画相匹配。该名称通常与目标变换的父实体名称相同,但并非必须如此。


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