本页内容

PauseAnimation QML Type

用于暂停动画。更多...

Import Statement: import QtQuick
Inherits:

Animation

属性

详细说明

在SequentialAnimation 中使用时,PauseAnimation是一个在指定时长内没有任何动作的步骤。

一个 500 毫秒的动画序列,两个动画之间有 100 毫秒的暂停:

SequentialAnimation {
    NumberAnimation { ... duration: 200 }
    PauseAnimation { duration: 100 }
    NumberAnimation { ... duration: 200 }
}

另请参阅 《 Qt Quick 中的动画与过渡》以及《Qt Quick 示例 - 动画》。

属性文档

duration : int

该属性表示暂停的持续时间(单位为毫秒)

默认值为 250。

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