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: |
- Liste de tous les membres, y compris les membres hérités
- SplineControlAnimation fait partie des types QML pour la 2D d'Qt Graphs .
Propriétés
- AnimationState : enumeration
- GraphAnimationType : enumeration
- animating : GraphAnimation::AnimationState
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.
| 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 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.