En esta página

SplineControlAnimation QML Type

Un tipo de animación que indica la animación de los puntos de control de la spline. Más...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Propiedades

Descripción detallada

SplineControlAnimation es un tipo de animación derivado de QVariantAnimation que define cómo se animan los puntos de control de la spline. Puede hacer uso de las funcionalidades y 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. Esta animación no afectará a los puntos principales de SplineSeries, sino sólo a los dos tiradores de control situados a ambos lados del punto. Cada uno de los puntos de control se interpola linealmente de forma sucesiva.

Este ejemplo muestra como usar tanto un SplineControlPointAnimation como un GraphPointAnimation para definir animaciones tanto para la serie principal de puntos como para los puntos de control de un SplineSeries:

import QtGraphs

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

Ver también GraphTransition y GraphPointAnimation.

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 GraphPointAnimation.
ControlPointUna 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.