GraphPointAnimation QML Type
Un type d'animation qui signifie l'animation des points. Plus d'informations...
| Import Statement: | import QtGraphs |
| Inherits: |
- Liste de tous les membres, y compris les membres hérités
- GraphPointAnimation fait partie de Qt Graphs QML Types for 2D.
Propriétés
- AnimationState : enumeration
- GraphAnimationType : enumeration
- animating : GraphAnimation::AnimationState
Description détaillée
GraphPointAnimation est un type d'animation dérivé de QVariantAnimation qui définit la manière dont les points sont animés. Il peut utiliser les fonctionnalités et les propriétés de QVariantAnimation pour ses animations, telles que duration et easing. Ces animations sont hébergées à l'intérieur d'un site QParallelAnimationGroup et s'exécutent donc en parallèle.
Cet exemple montre comment utiliser une GraphPointAnimation pour définir des points à animer avec un duration de 1000ms et un easing de OutCubic :
import QtGraphs GraphsView { LineSeries { GraphTransition { GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic } } } }
Pour XYSeries, on considère qu'il s'agit de la liste principale des points définis dans la série. Le point est interpolé linéairement de la valeur de départ à la valeur de fin.
Remarque : GraphPointAnimation ne permet actuellement d'animer que le dernier point d'une série lorsqu'un point est ajouté ou supprimé. Si un point est remplacé, l'animation sera déclenchée quel que soit l'indice du point dans la série.
Voir également GraphTransition et SplineControlAnimation.
Documentation sur les propriétés
AnimationState : enumeration
États d'animation.
| Constante | Description de l'animation |
|---|---|
Playing | L'animation est en cours de lecture. |
Stopped | L'animation est arrêtée. |
GraphAnimationType : enumeration
Type d'animation.
| Constante | Description de l'animation |
|---|---|
GraphPoint | Une animation GraphPointAnimation. |
ControlPoint | Une animation ControlPointAnimation. |
animating : GraphAnimation::AnimationState
Maintient l'état de l'animation. L'un des éléments suivants : 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.