Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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 the interactive 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 and flickerEnded signals didn't help me :(

    Any suggestion?



  • Do an animation sequence.. Having the visibility change on what is shown after the first animation.



  • Do an animation sequence.. Having the visibility change on what is shown after the first animation.



  • @fcarney

    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.


Log in to reply