Sur cette page

PauseAnimation QML Type

Permet de mettre une animation en pause. En savoir plus…

Import Statement: import QtQuick
Inherits:

Animation

Propriétés

Description détaillée

Lorsqu'elle est utilisée dans une séquence d'SequentialAnimation, la fonction PauseAnimation correspond à une étape au cours de laquelle rien ne se passe, pendant une durée spécifiée.

Une séquence d’animation de 500 ms, avec une pause de 100 ms entre deux animations :

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

Voir également «Animation et transitions » dans Qt Quick et « Exemples d'Qt Quick s - Animation ».

Documentation sur les propriétés

duration : int

Cette propriété indique la durée de la pause en millisecondes

La valeur par défaut est 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.