- Qt 6.11
- Qt Graphs
- QML Types
- QtGraphs
- SplineControlAnimation
- Qt Graphs | Commercial or GPLv3

# SplineControlAnimation QML Type

An animation type which signifies the animation for spline control points. More...

Import Statement: | `import QtGraphs`
Inherits: | XYSeriesAnimation

- List of all members, including inherited members
- SplineControlAnimation is part of Qt Graphs QML Types for 2D.

## Properties

- AnimationState : enumeration
- GraphAnimationType : enumeration
- animating : GraphAnimation::AnimationState

## Detailed Description

SplineControlAnimation is an animation type derived from QVariantAnimation which defines how spline control points are animated. It can make use of QVariantAnimation functionality and properties for its animations, such as `duration` and `easing`. These animations are housed inside a QParallelAnimationGroup and hence will run in parallel. This animation will not affect the main points of the SplineSeries, but only the two control handles on either side of the point. Each of the control points are linearly interpolated in succession.

This example shows how to use both a SplineControlPointAnimation and a GraphPointAnimation to define animations for both the main series of points and the control points of a SplineSeries:

     import QtGraphs

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

See also GraphTransition and GraphPointAnimation.

## Property Documentation

### AnimationState : enumeration

Animation states.

Constant | Description
--- | ---
`Playing` | Animation is playing.
`Stopped` | Animation is stopped.

### GraphAnimationType : enumeration

Animation type.

Constant | Description
--- | ---
`GraphPoint` | A GraphPointAnimation animation.
`ControlPoint` | A ControlPointAnimation animation.

### animating : GraphAnimation::AnimationState

Holds the animation state. One of GraphAnimation::AnimationState.