Sur cette page

GraphPointAnimation QML Type

Type d'animation correspondant à l'animation des points. En savoir plus...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Propriétés

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.

ConstanteDescription
PlayingL'animation est en cours de lecture.
StoppedL'animation est arrêtée.

GraphAnimationType : enumeration

Type d'animation.

ConstanteDescription
GraphPointUne animation de type « GraphPointAnimation ».
ControlPointUne 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.