Gradient interacts with parent widget's color?!
Adam Crowe last edited by Adam Crowe
I have a simple parent QWidget with a nice gradient defined in its stylesheet and that's all great. I've also got a QPushButton on that parent QWidget with its own nice linear gradient and that's good too except that the color of the QPushButton's gradient changes dramatically depending on its position over the parent's gradient. It seems to have a blend mode of some kind to made it stand out against a background. Is there a way to stop that from happening?
Here's an example. This is the very same QPushButton just at a different position on its parent QWidget:
By the way, the bottom image is the closest to the colors defined in the gradient.
mpergand last edited by
It may suprising you but the background colors of the two buttons are the same :)
Pretty strong Optical illusion :)
Adam Crowe last edited by
Sweet Baby Jesus! ε(´סּ︵סּ`)з
Apologies for the brain fart.
well it was a fair fart - so to speak :)
I had to look at it in a drawing app as it really looks darker at top.