GraphTransition QML Type
すべてのアニメーションが定義されるコンテナ。詳細...
| Import Statement: | import QtGraphs |
- 継承されたメンバーを含む、すべてのメンバーの一覧
- GraphTransitionは、Qt Graphs の2D用QMLタイプの一部です。
プロパティ
- TransitionType : enumeration
- animations : list<object>
詳細な説明
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 | 1つの点が削除されました。 |
animations : list<object>
GraphTransition 内のすべてのアニメーションを格納するコンテナです。現在、アニメーションの追加とクリアのみをサポートしています。デフォルトでは、リストは空です。
© 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.