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

Transient scrollbars do not work when using style sheets

    XMLWordPrintable

Details

    • Bug
    • Status: Reported
    • P2: Important
    • Resolution: Unresolved
    • 5.9.1, 5.12.0 Beta 4, 5.12.11
    • None
    • Widgets: Style Sheets
    • None
    • MacOSX 10.11.6, Xcode 8.2.1.
    • macOS

    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

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

          Activity

            People

              Unassigned Unassigned
              lyndon Lyndon Hill
              Votes:
              8 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes