编辑动画曲线
Curves 视图显示动画属性在动画范围内的插值。

编辑动画曲线时,会隐含编辑底层系统用于定义动画的缓和曲线。动画曲线是一种扩展,可同时显示关键帧值和关键帧之间的插值。
在关键帧之间应用插值
您可以使用工具栏按钮在关键帧之间添加Linear 、Step 或Spline 插值。
在关键帧之间应用插值:
- 选择关键帧。要选择多个关键帧,请选择并按住Ctrl 键,然后选择它们。
- 根据要使用的插补方法,选择
(Linear)、
(Step) 或
(Spline)。
当您将细分方法设置为Spline 时,Curves 中会出现手柄,您可以用它来修改曲线。选择
(Unify) 可以将关键帧左边的手柄锁定到右边的手柄,这样移动左边的手柄也会移动右边的手柄。
解锁属性和缓和曲线
如果包含动画属性的组件已在Navigator 中锁定,则可以选择
将其解锁。您也可以锁定单个缓和曲线进行编辑。
锁定动画曲线
要锁定一条动画曲线,请将鼠标悬停在列表中的属性上,然后选择
。
固定动画曲线
要固定一条动画曲线,请将鼠标悬停在列表中的属性上,然后选择
。
为动画曲线添加关键帧
为动画曲线添加关键帧:
- 在Timeline 视图中,为至少一个属性值插入关键帧,使其成为动画。
- 选择View >Views >Curves 打开动画曲线编辑器。
- 右键单击Curves ,然后选择Insert Keyframe 添加关键帧。
- 在列表中选择属性,以显示与之相连的缓和曲线。要选择多个属性,请选择并按住Ctrl 键,然后选择它们。
关闭视图后,您的更改将自动保存。
删除曲线中的关键帧
要删除选定的关键帧,请在上下文菜单中选择Delete Selected Keyframes 。
另请参阅 如何添加动画,Qt Quick UI 设计,以及设计Qt Quick UI。
Copyright © The Qt Company Ltd. and other contributors. 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.