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

Changing ListView.header height dynamically doesn't preserve relative scrollbar position when window is Maximized

    XMLWordPrintable

Details

    • macOS, 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

      Maximizing window which has ListView which's ListView.header height changes dynamically causes erroneous scrollbar positioning on macOS.

      Way to reproduce:
      1) Build and run the attached example project on macOS.
      2) Scroll the list all the way to the top so that the header is fully visible
      3) Maximize the app window.

      Whole header is expected to be visible after maximizing the window but instead, even if scrollbar updates "correctly", the relative position changes. And part of the header is above the new position.

      This behaves correctly if header is not used.

      On Windows, issue was reproduced by using display resolution 1920*1080 with 100% scaling but if display resolution 3840*2160 was used with 150% scaling, the issue did not reproduce.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: