AnimationController QML Type

アニメーションを手動で制御できるようにする。もっと詳しく...

Import Statement: import QtQuick

プロパティ

方法

詳細説明

通常、アニメーションは内部タイマーによって駆動されますが、AnimationController では、与えられたanimationprogress の値によって明示的に駆動することができます。

プロパティの説明

animation : Animation [default]

このプロパティは、AnimationController によって制御されるアニメーションを保持します。

注意:AnimationController によって制御されるアニメーションは、常にrunningpaused プロパティが true に設定されます。アニメーションを手動で開始または停止することはできません(Behaviorのアニメーションが手動で開始または停止できないのと同じです)。


progress : real

このプロパティは、アニメーションの進行値を保持します。

有効なprogress 値は0.0~1.0で、0未満の設定値は0に、1以上の設定値は1に変換されます。


メソッドの説明

completeToBeginning()

逆方向に制御されたアニメーションの実行を終了します。

このメソッドを呼び出した後、アニメーションは逆方向の現在の進行ポイントから開始状態まで正常に実行されます。

アニメーションコントローラの進捗値は、アニメーションの実行中に自動的に更新されます。

completeToEnd() およびprogressも参照してください


completeToEnd()

制御されたアニメーションを順方向に実行し終えます。

このメソッドを呼び出すと、アニメーションは現在の進行ポイントから終了状態まで、順方向に正常に実行されます。

アニメーションコントローラの進捗値は、アニメーションの実行中に自動的に更新されます。

completeToBeginning() およびprogressも参照してください


reload()

アニメーションプロパティの再読み込み

アニメーションのプロパティが変更された場合は、このメソッドを呼び出してアニメーションの定義を再読み込みします。


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