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

ListView/GridView remove transition does not position delegates correctly with 0 animation duration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.7.2
    • None

      If you use a duration of 0 for position animations in ListView/GridView remove transitions, the delegates will be out of place and overlap with each other. It seems like the bug may affect other transitions too, but I'm only able to see it with the remove transition using itemviewmodelandtransitiontest.qml. It also seems like any instant remove transition can cause the bug, even this:

      remove: Transition {}

      Most of the time you probably won't want a duration of 0, but KDE Plasma allows users to set global animation duration to 0 as an accessibility feature. The issue was first reported by a user here: https://bugs.kde.org/show_bug.cgi?id=483962

      If you run itemviewmodelandtransitiontest.qml and filter the model using the text field, you should be able to see the bug yourself.

      I have also attached a more minimal test file, minimal_itemviewmodelandtransitiontest.qml

        1. itemviewmodelandtransitiontest.qml
          8 kB
          Noah Davis
        2. minimal_itemviewmodelandtransitiontest.qml
          1 kB
          Noah Davis
        3. Screenshot_20240802_193022.png
          86 kB
          Noah Davis
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ndavis Noah Davis
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes