GraphTransition QML Type
A container in which all animations are defined. More...
Import Statement: | import QtGraphs |
- List of all members, including inherited members
- GraphTransition is part of Qt Graphs QML Types for 2D.
Properties
- animations : list<object>
Detailed Description
GraphTransition is a container for animations inside on Graphs2D. Define this class inside a graph type to enable animated changes for XYSeries within 2D graphs. To define individual animations, add them inside of the GraphTransition. The individual animations within the same GraphTransition are animated in parallel. If a GraphTransition is found by the graph during a call to a supported function which appends or replaces a point, then the values are interpolated according to the animations that are added.
This example shows how to define a GraphTransition within a graph.
import QtGraphs
GraphsView {
LineSeries {
GraphTransition {
GraphPointAnimation {}
}
}
SplineSeries {
GraphTransition {
SplineControlAnimation {}
}
}
}
Note: GraphTransition requires it to be defined directly inside the graph which needs to be animated. Currently only XYSeries are supported.
See also GraphPointAnimation and SplineControlAnimation.
Property Documentation
animations : list<object> |
A container for all the animations in the GraphTransition. Currently only supports animations to be added and cleared. By default, the list is empty.
© 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.