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

When the height of a delegate is bound to the height of a ListView with a large model count, the application is blocked for several seconds

    XMLWordPrintable

Details

    • 37c25c6e7 (dev), 8fae0aa4a (6.5)

    Description

      import QtQuick 2.6
      import QtQuick.Window 2.2
      
      Window {
          id: window
          width: 400
          height: 800
          visible: true
          color: "#444"
      
          ListView {
              id: lv
              anchors.fill: parent
              model: 73000
              onCountChanged: print("count", count)
      
              delegate: Item {
                  width: 100
                  height: lv.height
              }
          }
      }
      

      Using a fixed height like height: 20 or height: window.height is a workaround.

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change