What happens if you overload the style for different states of the button like :hover?
QPushButton, QPushButton:hover { background: white; color: black; }
What happens if you overload the style for different states of the button like :hover?
QPushButton, QPushButton:hover { background: white; color: black; }
Sorry for not getting back to this sooner. Been focused on other projects.
If I overload for :hover, with the above sytnax, using the Plastique style I still don't get a solid color background in the button, it's a white to grey gradient. I get similar results if I overload for :pressed with the same syntax.
So I'm using a qlineargradient to get a solid color background for my QPushButton, when using the Plastique style.
From my testing this only appears to happen with the Plastique style and not with any other sytle that I tried.
This might be a bug in stylesheets or plastique.
Bookmarks