SplineControlAnimation QML Type
Ein Animationstyp, der die Animation für Spline-Kontrollpunkte bezeichnet. Mehr...
| Import Statement: | import QtGraphs |
| Inherits: |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- „SplineControlAnimation“ ist Teil der „Qt Graphs “-QML-Typen für 2D.
Eigenschaften
- AnimationState : enumeration
- GraphAnimationType : enumeration
- animating : GraphAnimation::AnimationState
Ausführliche Beschreibung
„SplineControlAnimation“ ist ein von „ QVariantAnimation “ abgeleiteter Animationstyp, der definiert, wie Spline-Kontrollpunkte animiert werden. Er kann für seine Animationen die Funktionen und Eigenschaften von „ QVariantAnimation “ nutzen, wie beispielsweise „ duration “ und „ easing “. Diese Animationen sind in einem „ QParallelAnimationGroup “ untergebracht und werden daher parallel ausgeführt. Diese Animation wirkt sich nicht auf die Hauptpunkte des „ SplineSeries “ aus, sondern nur auf die beiden Kontrollgriffe auf beiden Seiten des Punktes. Jeder der Kontrollpunkte wird nacheinander linear interpoliert.
Dieses Beispiel zeigt, wie man sowohl eine „SplineControlPointAnimation“ als auch eine „ GraphPointAnimation “ verwendet, um Animationen sowohl für die Hauptpunktreihe als auch für die Kontrollpunkte eines „ SplineSeries “ zu definieren:
import QtGraphs
GraphsView {
SplineSeries {
GraphTransition {
GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
SplineControlAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
}
}
}Siehe auch „ GraphTransition “ und „ GraphPointAnimation “.
Dokumentation zu den Eigenschaften
AnimationState : enumeration
Animationszustände.
| Konstante | Beschreibung |
|---|---|
Playing | Die Animation wird abgespielt. |
Stopped | Die Animation ist angehalten. |
GraphAnimationType : enumeration
Animationstyp.
| Konstante | Beschreibung |
|---|---|
GraphPoint | Eine „ GraphPointAnimation “-Animation. |
ControlPoint | Eine „ControlPointAnimation“-Animation. |
animating : GraphAnimation::AnimationState
Speichert den Animationsstatus. Einer der folgenden Werte: „ 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.