GraphPointAnimation QML Type
Type d'animation correspondant à l'animation des points. En savoir plus...
| Import Statement: | import QtGraphs |
| Inherits: |
- Liste de tous les membres, y compris les membres hérités
- GraphPointAnimation fait partie des types QML 2D d'Qt Graphs .
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 propriétés d'QVariantAnimation pour ses animations, telles que duration et easing. Ces animations sont hébergées au sein d'un QParallelAnimationGroup et s'exécuteront donc en parallèle.
Cet exemple montre comment utiliser un `GraphPointAnimation` pour animer des points avec une ` duration ` de 1 000 ms et une ` easing ` de type `OutCubic` :
import QtGraphs
GraphsView {
LineSeries {
GraphTransition {
GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
}
}
}Pour l’ XYSeries, il s’agit de la liste principale des points définis au sein de la série. Le point est interpolé linéairement entre la valeur de départ et la valeur finale.
Remarque : GraphPointAnimation ne prend actuellement en charge l’animation que du 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’index du point au sein de la série.
Voir également GraphTransition et SplineControlAnimation.
Documentation des propriétés
AnimationState : enumeration
États d'animation.
| Constante | Description |
|---|---|
Playing | L'animation est en cours de lecture. |
Stopped | L'animation est arrêtée. |
GraphAnimationType : enumeration
Type d'animation.
| Constante | Description |
|---|---|
GraphPoint | Une animation de type « GraphPointAnimation ». |
ControlPoint | Une animation de type ControlPointAnimation. |
animating : GraphAnimation::AnimationState
Contient l'état de l'animation. L'une des valeurs suivantes : 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.