ParallelAnimation QML Type
Permite ejecutar animaciones en paralelo. Más...
| Import Statement: | import QtQuick |
| Inherits: |
Descripción detallada
Los tipos SequentialAnimation y ParallelAnimation permiten ejecutar varias animaciones a la vez. Las animaciones definidas en SequentialAnimation se ejecutan una tras otra, mientras que las definidas en ParallelAnimation se ejecutan al mismo tiempo.
La siguiente animación ejecuta dos animaciones numéricas en paralelo. El Rectangle se mueve a (50,50) animando sus propiedades x y y al mismo tiempo.
import QtQuick Rectangle { id: rect width: 100; height: 100 color: "red" ParallelAnimation { running: true NumberAnimation { target: rect; property: "x"; to: 50; duration: 1000 } NumberAnimation { target: rect; property: "y"; to: 50; duration: 1000 } } }
Como cualquier otro tipo de animación, una ParallelAnimation puede ser aplicada de varias maneras, incluyendo transiciones, comportamientos y fuentes de valores de propiedades. La documentación de Animación y Transiciones en Qt Quick muestra una variedad de métodos para crear animaciones.
Nota: Una vez que una animación ha sido agrupada en un SequentialAnimation o ParallelAnimation, no puede ser iniciada y detenida individualmente; el SequentialAnimation o ParallelAnimation debe ser iniciado y detenido como un grupo.
Véase también SequentialAnimation, Animación y transiciones en Qt Quick, y Qt Quick Ejemplos - Animación.
© 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.