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: |
- Liste de tous les membres, y compris les membres hérités
- SplineControlAnimation fait partie de Qt Graphs QML Types for 2D.
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 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.
| Constante | Description de l'animation |
|---|---|
Playing | L'animation est en cours de lecture. |
Stopped | L'animation est arrêtée. |
GraphAnimationType : enumeration
Type d'animation.
| Constante | Description de l'animation |
|---|---|
GraphPoint | Une animation GraphPointAnimation. |
ControlPoint | Une 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.