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

Setting negative cacheBuffer results in endless delegate creation/destruction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.3.1
    • 5.1.1, 5.3.0 Beta1
    • None
    • qtdeclarative#stable: 556846aa1fd5594156116c33ebf57b1f58fff53e

      The following example illustrates:

      import QtQuick 2.0
      
      ListView {
          id: view
          width: 400; height: 400
      
          model: 10
          cacheBuffer: -1
      
          delegate: Rectangle {
              color: index % 2 ? "green" : "orange"
              width: parent.width
              height: 200
      
              Component.onCompleted: console.log("created", index)
              Component.onDestruction: console.log("destroyed", index)
          }
      }
      

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

            Unassigned Unassigned
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes