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

QML ItemViews inside QML ItemViews create all the items of its height on creation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.1.0
    • None

    Description

      If you run the attached listviewdelegatecreation_qt.qml file on qmlscene you'll see that the 50 items of the first section of the list are created even if just 6 are on screen, this is because itemviews create items based on their contentY and height, which in case of a itemview inside a itemview is "all the height", so all items are created.

      I am proposing a new API to itemviews (will post the gerrit url in a comment) that allows users specify a range where delegate creation should happen, this is used in listviewdelegatecreation.qml to show that instead of the 50 items we just need to create 10 items (6 visible + cache)

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            tsdgeos_canonical Albert Astals Cid (Canonical) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes