Auf dieser Seite

SplineControlAnimation QML Type

Ein Animationstyp, der die Animation für Spline-Kontrollpunkte bezeichnet. Mehr...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Eigenschaften

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.

KonstanteBeschreibung
PlayingDie Animation wird abgespielt.
StoppedDie Animation ist angehalten.

GraphAnimationType : enumeration

Animationstyp.

KonstanteBeschreibung
GraphPointEine „ GraphPointAnimation “-Animation.
ControlPointEine „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.