An animation type which signifies the animation for points. More...
| Import Statement: | import QtGraphs |
| Inherits: |
GraphPointAnimation is an animation type derived from QVariantAnimation which defines how 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 of a
QParallelAnimationGroup and hence will run in parallel.
This example shows how to use a GraphPointAnimation to set points to animate with a duration of 1000ms and easing of OutCubic:
import QtGraphs GraphsView { LineSeries { GraphTransition { GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic } } } }
For XYSeries, this is considered to be the main list of points defined inside the series. The point is linearly interpolated from the start to the end value.
Note: GraphPointAnimation currently supports animating only the last point in a series when a point is appended or removed. If a point is replaced, the animation will be triggered regardless of the point’s index within the series.
See also GraphTransition and SplineControlAnimation.
|
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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: