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

Reused items in GridView wrongly inherit properties changed in remove transition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.6
    • None
    • Linux/X11

    Description

      If there is a GridView like

      GridView {
          model: listModel
          delegate: Rectangle {
              width: 100
              height: 100
              color: "red"
          }
          reuseItems: true
          remove: Transition {
              ParallelAnimation {
                  NumberAnimation { property: "scale"; to: 0.5; duration: 200 }
                  NumberAnimation { property: "opacity"; to: 0.0; duration: 200 }
              }
          }
      }
      

      When some items are removed from the list, the remaining items can reuse the deleted items when reuseItems is true, but their scale and opacity properties are 0.5 and 0.0 respectively, which is a wrong behavior.

       

      Attachments

        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
            fusionfuture Yuanzheng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes