Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ListView: How to know the currentItem has finished its move animation
Forum Updated to NodeBB v4.3 + New Features

ListView: How to know the currentItem has finished its move animation

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 253 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Karim
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by fcarney
      #2

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

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Karim
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved