Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.7.0
-
None
-
Ubuntu 16.04
Description
I have a gui that runs on both linux and windows. The stylesheet to set the background color of my widgets using qlineargradient doesn't show up on linux (shows up as pure black) but shows up properly on windows. I'm using qt 5.6 and have tried 5.7 as well. I'm using Linux Ubuntu 16.04.
This is how i was using the qlineargradient style for my toolbar and statusbar widgets. I think it should also be reproducible for other widget types.
QToolBar
{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(255,255,255), stop: 0.4 rgb(250,250,250), stop: 0.5 rgb(250,250,250), stop: 1.0 rgb(240,240,240)); }QStatusBar
{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(255,255,255), stop: 0.4 rgb(250,250,250), stop: 0.5 rgb(250,250,250), stop: 1.0 rgb(240,240,240)); }