Sur cette page

SplineControlAnimation QML Type

Un type d'animation qui indique l'animation des points de contrôle des splines. Plus d'informations...

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 des splines 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. Cette animation n'affecte pas les points principaux du site 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 à la suite.

Cet exemple montre comment utiliser à la fois une SplineControlPointAnimation et une GraphPointAnimation pour définir des animations à la fois pour la série principale de points et pour les points de contrôle d'une 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 de l'animation
PlayingL'animation est en cours de lecture.
StoppedL'animation est arrêtée.

GraphAnimationType : enumeration

Type d'animation.

ConstanteDescription de l'animation
GraphPointUne animation GraphPointAnimation.
ControlPointUne 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.