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

ListView does not preserve its relative scrollbar position when window is restored down on Windows if height of ListView.header changes dynamically

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 833f83f270 (qt/qtdeclarative/dev) 833f83f270 (qt/tqtc-qtdeclarative/dev) d72f98dc8b (qt/tqtc-qtdeclarative/6.2) 30e3d19581 (qt/qtdeclarative/6.3) c6b6d93325 (qt/qtdeclarative/6.4) 30e3d19581 (qt/tqtc-qtdeclarative/6.3)

    Description

      Reproducible on Windows with Qt 6.2.3

      ListView has "empty content" visible when app Window is restored down.
      Steps to reproduce:
      1. Build and run the attached example project with Qt 6.2.3
      2. Maximize app window
      3. scroll the list all the way to bottom and back to top so that the header is fully visible again
      4. Restore down the app window

      Please note, may take a few tries issue to appear.

      Expected: Header should be positioned close to top border of window
      Actual behavior: some "empty space" is visible above the ListView

      This behaves correctly if header is not used.

      Attachments

        1. empty-space.png
          empty-space.png
          10 kB
        2. main.qml
          2 kB
        3. qtbug101268.zip
          1 kB

        Issue Links

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

          Activity

            People

              hurlevent Oliver Eftevaag
              foxxx Tuukka Kettunen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: