Timeline QML Type

时间轴。更多

Import Statement: import QtQuick.Timeline 1.0
Inherits:

QtObject

属性

详细说明

指定一条时间线,该时间线包含一系列关键帧,其中包含对象的属性值。时间线允许根据关键帧及其缓和曲线指定项目的值。

时间线既可用于动画,也可用于控制项目的行为。

例如,可以创建一个进度条,让当前帧反映进度。

属性文档

animations : list [read-only]

附加到时间线的动画列表。


currentFrame : double

时间线上的当前关键帧。当前关键帧可以是动画,也可以附加绑定。使用绑定可以控制组件的行为。


enabled : bool

时间线是否启用。

禁用时间线时,所有项目都将使用常规值。启用时间线后,项目值由当前帧和关键帧决定。

同一时间只能有一条时间线处于活动状态。


endFrame : double

时间线的末端。


keyframes : list [read-only]

该属性包含附加到时间线的关键帧组。每个关键帧组都包含特定项目和属性的关键帧列表。


startFrame : double

时间线的起点。


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