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

Transient scrollbars do not work when using style sheets

    XMLWordPrintable

Details

    • macOS
    • f83d9ec00 (dev), c2a68b571 (6.5), f5105ea89 (dev), 14eacdaf2 (6.5), c4c7bebb6 (6.4), 56f24fb49 (tqtc/lts-6.2)

    Description

      Background: Mac has a feature called transient scrollbars; in System Preferences/General there is an option for "Show Scrollbars". When not set to always show scrollbars; OSX will only show scrollbars when scrolling (they appear, move, then disappear). Transient scroll bars are composited on top of the widget, to the side or bottom depending on horizontal or vertical. This means the widget is not resized to make space for the scrollbar.

      Problem: If a stylesheet is used for QScrollBar then scrollbars are always drawn on top of the widget and do not disappear if scrolling finished. This blocks access to the widget underneath (cannot see or interact).

      Expected Behaviour: For transient scrollbars, Qt should only draw the scrollbar when scrolling and composite on top of the widget. When scrolling ends, the scrollbar should not be hidden. Ideally QScrollBar::add-line and ::sub-line styles should also support alpha channel in the background property.

       

       

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-63381
          # Subject Branch Project Status CR V

          Activity

            People

              vhilshei Volker Hilsheimer
              lyndon Lyndon Hill
              Votes:
              8 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: