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

SmoothedAnimation breaks in ViewModel displaced transition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • Quick: Other
    • None

    Description

      ListView, and presumably GridView handle SmoothedAnimation in the displaced transition incorrectly when interrupted.

      The attached sample removes an item from a model and re-inserts the item while the animation is still playing. The expected behavior is for animating items to shift back into place, but instead they collapse into the top of the view. Note that this happens regardless of duration or velocity being used in the animation.

      I couldn't find any documentation indicating SmoothedAnimation cannot be used in a ViewTransition, and https://doc.qt.io/qt-6/qml-qtquick-viewtransition.html#handling-interrupted-animations seems to suggest it should work.

      Edit: I'm encountering somewhat similar issues with NumberAnimation but they're far harder to reproduce in a controlled environment.

      Attachments

        1. ListViewTest.qml
          0.7 kB
        2. recording.mp4
          365 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            outfoxxed outfoxxed -
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes