Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.9.1, 5.12.0 Beta 4, 5.12.11, 5.15.3, 6.5.0 Beta2
-
MacOSX 10.11.6, Xcode 8.2.1.
-
-
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
- is duplicated by
-
QTBUG-71763 Mac Scrollbar issue on styled application
- Closed
- relates to
-
QTIFW-2086 Add padding to the bottom of the list in component view
- Closed
For Gerrit Dashboard: QTBUG-63381 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
460197,3 | QStyleSheet: never treat styled scrollbars as transient | dev | qt/qtbase | Status: MERGED | +2 | 0 |
460606,2 | macOS style: only overlap if transient | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
460841,2 | macOS style: only overlap if transient | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
463141,1 | QStyleSheet: never treat styled scrollbars as transient | 6.5 | qt/qtbase | Status: ABANDONED | 0 | 0 |
463142,1 | QStyleSheet: never treat styled scrollbars as transient | 6.4 | qt/qtbase | Status: ABANDONED | 0 | 0 |
463145,2 | QStyleSheet: never treat styled scrollbars as transient | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
463146,1 | QStyleSheet: never treat styled scrollbars as transient | 6.5 | qt/qtbase | Status: ABANDONED | 0 | 0 |
463149,1 | QStyleSheet: never treat styled scrollbars as transient | 6.5 | qt/qtbase | Status: ABANDONED | 0 | 0 |
463152,2 | QStyleSheet: never treat styled scrollbars as transient | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
463160,2 | QStyleSheet: never treat styled scrollbars as transient | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |