GraphPointAnimation QML Type

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

Import Statement: import QtGraphs

Detailed Description

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.

See also GraphTransition and SplineControlAnimation.

© 2024 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.