ListView: How to know the currentItem has finished its move animation
-
I have implemented a ListView object that displays basic image thumbnails.
No highlight items, and theinteractive
property is set to false.
To scroll within the items is achieved by clicking on the item.What I need, is to display additional items (rect, trext etc) for the current item and WHEN the item has finished its move animation.
Knowing that the interactive property is false.Unfortunately, the
flickerStarted
andflickerEnded
signals didn't help me :(Any suggestion?
-
Do an animation sequence.. Having the visibility change on what is shown after the first animation.
-
Yes, I thought about using an animation sequence...it can work.
As I'm using a Behavior animation type, I 've been using the following:Behavior on width { SpringAnimation { spring: 4; damping: 0.4 onRunningChanged: myAnimFinished = (running === false) } }
I'll evaluate both solutions in terms of performance.