Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111687

ListView: interrupted remove animation leaves artifacts

    XMLWordPrintable

Details

    Description

      When the remove animation is interrupted ie. the displaced animation is started due to some other item is also removed or added then the item that had the remove animation interrupted is not completely removed, but is left as an artifact to the view. 

      Our documentation covers the case then an add transition is interrupted, but this does not work for remove case as there is not knowing which transition was interrupted and it does not also know which item the animation was interrupted and all the displaced items will be going thru the remove animation.

      https://doc.qt.io/qt-6/qml-qtquick-viewtransition.html#handling-interrupted-animations

      The reproduce the issue, please run the attached example.

      1. Start clicking the ListView items from the top so that the next remove will cause a displacement animation to interrupt the previous remove animation.
      2. The removed items will be left on the view with unfinished remove animations.
      3. Change the geometry of the application window which causes the scene to be rendered and the artifacts will disappear.

       

      Attachments

        1. qtbug_111687.zip
          6 kB
          Tuomas Vaarala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            tuomas.vaarala Tuomas Vaarala
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes