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

Mac Scrollbar issue on styled application

    XMLWordPrintable

Details

    • macOS

    Description

      See attached example. On start the scrollbars will typically shadow the content of the itemview. In some situations it may stop doing that when we apply the style sheet again (second button) or the dialog is resized (not always depending on external screen and co-coincidence - at least in Qt 5.9.4 - I could not reproduce with recent 5.12 build).
      Also notice that the horizontal scrollbar is not shown at once though it should be.

      Another issue related to this is that if the program hides the horizontal scrollbar, then the horizontal scrollbar range is still changed when/if Qt realizes that the vertical scrollbar needs space - which still leaves an area to the right hidden behind the scrollbar. (though the content should never have had this width). This can likely be reproduced by setting column count to be 50 + move horizontal scrollbar to the right ... and apply the stylesheet again. Notice that the horizontal scrollbar no longer has the maximum position. (+imagine that this scrollbar was hidden ...)

      Attachments

        1. main.pro
          0.0 kB
        2. Screen Shot 2018-11-13 at 13.17.36.png
          Screen Shot 2018-11-13 at 13.17.36.png
          129 kB
        3. main.cpp
          2 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              tmartsum Thorbjørn Lund Martsum
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes