GraphPointAnimation QML Type

Ein Animationstyp, der die Animation für Punkte angibt. Mehr...

Import Statement: import QtGraphs
Inherits:

XYSeriesAnimation

Eigenschaften

Detaillierte Beschreibung

GraphPointAnimation ist ein von QVariantAnimation abgeleiteter Animationstyp, der definiert, wie Punkte animiert werden. Er kann die Funktionalitäten und Eigenschaften von QVariantAnimation für seine Animationen nutzen, wie duration und easing. Diese Animationen sind in einem QParallelAnimationGroup untergebracht und laufen daher parallel.

Dieses Beispiel zeigt, wie eine GraphPointAnimation verwendet wird, um Punkte mit einer duration von 1000ms und easing von OutCubic zu animieren:

import QtGraphs

GraphsView {
    LineSeries {
        GraphTransition {
            GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic  }
        }
    }
}

Für XYSeries wird dies als die Hauptliste der in der Serie definierten Punkte betrachtet. Der Punkt wird linear vom Start- zum Endwert interpoliert.

Hinweis: GraphPointAnimation unterstützt derzeit nur die Animation des letzten Punktes in einer Serie, wenn ein Punkt hinzugefügt oder entfernt wird. Wenn ein Punkt ersetzt wird, wird die Animation unabhängig vom Index des Punktes innerhalb der Serie ausgelöst.

Siehe auch GraphTransition und SplineControlAnimation.

Dokumentation der Eigenschaft

AnimationState : enumeration

Animationszustände.

KonstanteBeschreibung
PlayingDie Animation wird abgespielt.
StoppedDie Animation ist gestoppt.

GraphAnimationType : enumeration

Typ der Animation.

KonstanteBeschreibung
GraphPointEine GraphPointAnimation Animation.
ControlPointEine ControlPointAnimation-Animation.

animating : GraphAnimation::AnimationState

Enthält den Animationszustand. Eine von GraphAnimation::AnimationState.


© 2025 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.