En esta página

GraphPointAnimation QML Type

Un tipo de animación que se refiere a la animación de puntos. Más...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Propiedades

Descripción detallada

GraphPointAnimation es un tipo de animación derivado de QVariantAnimation que define cómo se animan los puntos. Puede utilizar la funcionalidad y las propiedades de QVariantAnimation para sus animaciones, como duration y easing. Estas animaciones se alojan dentro de un QParallelAnimationGroup y, por lo tanto, se ejecutarán en paralelo.

Este ejemplo muestra cómo utilizar un «GraphPointAnimation» para configurar la animación de los puntos con un « duration » de 1000 ms y un « easing » de «OutCubic»:

import QtGraphs

GraphsView {
    LineSeries {
        GraphTransition {
            GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic  }
        }
    }
}

En el caso de « 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 valor final.

Nota: Actualmente,GraphPointAnimation solo admite la animación del último punto de una serie cuando se añade o se elimina un punto. Si se sustituye un punto, la animación se activará independientemente del índice que ocupe dicho punto dentro de la serie.

Véase también GraphTransition y SplineControlAnimation.

Documentación de propiedades

AnimationState : enumeration

Estados de animación.

ConstanteDescripción
PlayingLa animación se está reproduciendo.
StoppedLa animación está detenida.

GraphAnimationType : enumeration

Tipo de animación.

ConstanteDescripción
GraphPointUna animación de tipo « GraphPointAnimation ».
ControlPointUna animación de tipo «ControlPointAnimation».

animating : GraphAnimation::AnimationState

Almacena el estado de la animación. Uno de los siguientes valores: 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.