Skip to content
Advertisement

ScrollBar QStyleSheet displayed with a background when It should be transparent

I’m trying to style the scroll bar of a QtTableWidget so the part where the “scrolling part” isn’t on the bar is transparent so the scrollbar would be of the color of the background and the scrolling part (where you put your mouse) is the only part whose color is different from the background.

I tried this as a stylesheet:

JavaScript

But when the windows is displayed the part I want to be transparent is filled with a white tilled background like that :

ScrollBar

I’m not sure what causes this issue in my Stylesheet.

Here is the code to reproduce the window :

JavaScript

Advertisement

Answer

Try it:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement