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

Initial creation of ListView with section headers: when using Loader in delegate to load other qml file, delegate is positioned incorrectly (and overlaps section header)

    XMLWordPrintable

Details

    • 8a3d48915c29484c9ffb2fb8f0e3b569a9fe9b44

    Description

      Our UI consists of a horizontally flickable ListView which contains a series of pages. The pages contain a vertically flickable ListView with section headers whose delegates contains a Loader which loads external QML files.

      We found that the initial creation of the page's ListView can have some of the delegates positioned to overlap the section header.

      Destruction and re-creation of the page by the ListView has the delegates positioned correctly this time (no overlap).

      Please see the attached test case. To see the bug:
      1. Swipe right a bit, you'll find a page with a red section header, and the list's delegate containing a grid of white rectangles. They are overlapping.
      2. Continue to swipe right until the end of the list.
      3. Swipe left to find the page in step1 again. Now the section header & delegate do not overlap.
      See this video: http://ubuntuone.com/5zAmqlwTVSGzKNvNtYv3oC

      A workaround is to use the Loader's sourceComponent property instead.

      Attachments

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

        Activity

          People

            tsdgeos_canonical Albert Astals Cid (Canonical) (Inactive)
            gerboland Gerry Boland
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes