本页内容

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

时间轴的起点。

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