Sur cette page

SplineControlAnimation QML Type

Type d'animation correspondant à l'animation des points de contrôle d'une spline. En savoir plus...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Propriétés

Description détaillée

SplineControlAnimation est un type d’animation dérivé de QVariantAnimation qui définit la manière dont les points de contrôle d’une spline 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 dans un QParallelAnimationGroup et s’exécuteront donc en parallèle. Cette animation n’affectera pas les points principaux de l’ SplineSeries, mais uniquement les deux poignées de contrôle situées de part et d’autre du point. Chacun des points de contrôle est interpolé linéairement les uns après les autres.

Cet exemple montre comment utiliser à la fois un `SplineControlPointAnimation` et un ` GraphPointAnimation ` pour définir des animations à la fois pour la série principale de points et pour les points de contrôle d’un ` SplineSeries` :

import QtGraphs

GraphsView {
    SplineSeries {
        GraphTransition {
            GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic  }
            SplineControlAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
        }
    }
}

Voir également « GraphTransition » et « GraphPointAnimation ».

Documentation sur les 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 d'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.