XAnimator QML Type
XAnimatorタイプは、Itemのx位置をアニメートする。詳細...
Import Statement: | import QtQuick |
Inherits: |
詳細説明
Animator XAnimatorタイプは通常のAnimationタイプとは異なります。Animatorを使用する場合、アニメーションはレンダースレッドで実行することができ、アニメーションが完了するとプロパティ値は最後にジャンプします。
アニメーションが終了すると、Item::x の値が更新されます。
次のスニペットは、XAnimatorとRectangleアイテムの併用方法を示しています。
Rectangle { id: xmovingBox width: 50 height: 50 color: "lightsteelblue" XAnimator { target: xmovingBox; from: 10; to: 0; duration: 1000 running: true } }
また、on
キーワードを使用して、XAnimator を Item インスタンスに直接結びつけることも可能です。
Rectangle { width: 50 height: 50 color: "lightsteelblue" XAnimator on x { from: 10; to: 0; duration: 1000 } }
© 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.