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

ListView: section headers cause contentY + originY combination to be incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.0.0 Beta 2
    • None
    • Ubuntu quantal, 64 bit, qt5 beta2

    Description

      I want to use a Flickable to scroll a ListView. For this I bind the contentY of the ListView to the contentY of the Flickable added to the ListView originY.

      In the case of no section headers, this works perfectly. Scrolling the Flickable scrolls the ListView in sync.

      However including section headers, when scrolling I get binding errors just at the moments when originY changes. As a result, the scrolling jitters at these moments.

      I believe originY is not calculated correctly when section headers are used.

      Attached is a test case which reproduces this. Just scroll the list to the bottom - when the ListView starts to delete/insert delegates, originY changes but jittery scrolling is seen (plus errors logged).

      Commenting out the section header definition has everything working fine.

      Note: I also see a crash when the list is scrolled rapidly. A bad workaround is to use a cachebuffer of reasonable size.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            gerboland Gerry Boland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes