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

QML ListView with variable sized delegates causes attached scroll bar to change sizes and skip around in an unwanted manner

XMLWordPrintable

    • Windows
    • 2436de31b (dev), e4151b581 (6.5)

      This bug can be reproduced by running the attached QML file using qmlscene and scrolling up and down through the list. 

      Due to the ListView needing to know the sizes of the delegates in order to correctly size the scroll bar I would not expect the scroll bar to be sized to the total content immediately, but instead sized to the content that is visible and to content that has previously been visible. 

      The current ListView behavior will size the scroll bar to the current visible content along with any loaded content defined by the size of the cacheBuffer. This will cause the scroll bar to shrink and grow as different sized delegates enter visibility or are loaded by the cacheBuffer and leave visibility or are unloaded by the cacheBuffer. This change in loaded content size also causes the scroll bar to jump around slightly. 

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

            matthias_rauter Matthias Rauter
            jcarter Joe Carter
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes