GraphTransition QML Type

すべてのアニメーションを定義するコンテナ。詳細...

Import Statement: import QtGraphs

プロパティ

詳細説明

GraphTransitionは、Graphs2D内のアニメーションのためのコンテナである。2Dグラフ内のXYSeries 、アニメーションによる変化を可能にするために、グラフタイプ内でこのクラスを定義する。個々のアニメーションを定義するには、GraphTransitionの中に追加します。同じGraphTransition内の個々のアニメーションは、並行してアニメーション化されます。点を追加または置換するサポートされた関数の呼び出し中に、グラフによってGraphTransitionが見つかると、追加されたアニメーションに従って値が補間されます。

この例では、グラフ内でGraphTransitionを定義する方法を示します。

import QtGraphs

GraphsView {
    LineSeries {
        GraphTransition {
            GraphPointAnimation {}
        }
    }

    SplineSeries {
        GraphTransition {
            SplineControlAnimation {}
        }
    }
}

注: GraphTransitionは、アニメーションが必要なグラフの内部で直接定義する必要があります。現在のところ、XYSeries のみがサポートされています。

GraphPointAnimation およびSplineControlAnimationも参照して ください。

プロパティ ドキュメント

TransitionType : enumeration

遷移のタイプ。

定数説明
None遷移なし。
PointAdded点が追加された。
PointReplaced点が置き換えられた。
PointRemovedポイントが削除された。

animations : list<object>

GraphTransition にあるすべてのアニメーションのためのコンテナです。 現在、追加と削除のアニメーションのみをサポートしています。デフォルトでは、リストは空です。


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