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