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

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

          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