GraphPointAnimation QML Type
Un tipo de animación que significa la animación para los puntos. Más...
| Import Statement: | import QtGraphs |
| Inherits: |
- Lista de todos los miembros, incluyendo los heredados
- GraphPointAnimation es parte de Qt Graphs QML Types for 2D.
Propiedades
- AnimationState : enumeration
- GraphAnimationType : enumeration
- animating : GraphAnimation::AnimationState
Descripción detallada
GraphPointAnimation es un tipo de animación derivado de QVariantAnimation que define cómo se animan los puntos. Puede hacer uso de la funcionalidad y propiedades de QVariantAnimation para sus animaciones, como duration y easing. Estas animaciones se alojan dentro de QParallelAnimationGroup y, por tanto, se ejecutarán en paralelo.
Este ejemplo muestra cómo utilizar un GraphPointAnimation para establecer puntos a animar con un duration de 1000ms y easing de OutCubic:
import QtGraphs GraphsView { LineSeries { GraphTransition { GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic } } } }
Para XYSeries, se considera que esta es la lista principal de puntos definidos dentro de la serie. El punto se interpola linealmente desde el valor inicial hasta el final.
Nota: GraphPointAnimation actualmente sólo permite animar el último punto de una serie cuando se añade o elimina un punto. Si se sustituye un punto, la animación se activará independientemente del índice del punto dentro de la serie.
Ver también GraphTransition y SplineControlAnimation.
Documentación de propiedades
AnimationState : enumeration
Estados de animación.
| Constante | Descripción |
|---|---|
Playing | La animación se está reproduciendo. |
Stopped | La animación está detenida. |
GraphAnimationType : enumeration
Tipo de animación.
| Constante | Descripción |
|---|---|
GraphPoint | Una animación GraphPointAnimation. |
ControlPoint | Una animación ControlPointAnimation. |
animating : GraphAnimation::AnimationState
Mantiene el estado de la animación. Uno de GraphAnimation::AnimationState.
© 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.