PauseAnimation QML Type
为动画提供暂停。更多
导入声明: | import QtQuick |
继承: |
属性
- duration : int
详细说明
在SequentialAnimation 中使用时,PauseAnimation 是指在指定的持续时间内无任何动作发生的步骤。
一个 500 毫秒的动画序列,在两个动画之间有 100 毫秒的停顿:
SequentialAnimation { NumberAnimation { ... duration: 200 } PauseAnimation { duration: 100 } NumberAnimation { ... duration: 200 } }
另请参阅 Qt Quick和Qt Quick 示例 - 动画中的动画和转场。
属性文档
会期int |
该属性表示暂停的持续时间,单位为毫秒。
默认值为 250。
© 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.