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

[REG: 5.15 → 6.2] binding doesn't update when it should

    XMLWordPrintable

Details

    • Linux/X11, macOS
    • c4bfd32cc (dev), 37fe0b86d (6.6), 88a38b069 (6.5), 0df5ffce4 (tqtc/lts-6.2)

    Description

      See the simple attached example, when run with Qt 6.4.1 it fails to show the blue rectangle when clicking on the red one. With 5.15 it is shown correctly.

       

      Looking at the log messages for some reason the blue height rectangle is not being recalculated

      Minimal example:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          id: root
      
          width: 640
          height: 480
          visible: true
      
          ListView {
              id: lv
      
              model: ListModel { }
      
              delegate: Item {
                  width: 35
                  height: 75
              }
      
              footer: Rectangle {
                  color: "red"
                  width: 35
                  height: root.height - lv.count * 75
                  TapHandler { onTapped: lv.model.append({}) }
              }
      
              width: 35
              height: 640
          }
      
          Rectangle {
              width: 35
              height: lv.contentHeight - lv.footerItem.height
              color: "blue"
          }
      }
      

      You actually need those two bindings. I can't reduce it any further.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            albert.astals.cid.avid Albert Astals Cid
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: