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

Reused items in GridView wrongly inherit properties changed in remove transition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.0 FF
    • 5.15.6
    • None
    • Linux/X11
    • 941b36a98 (dev)

      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.

       

        For Gerrit Dashboard: QTBUG-107458
        # Subject Branch Project Status CR V

            chrisrl Chris Lerner (Inactive)
            fusionfuture Yuanzheng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes