このページでは

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に変換されます。

メソッドの説明

void completeToBeginning()

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

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

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

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

void completeToEnd()

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

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

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

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

void reload()

アニメーションのプロパティをリロードする

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

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