Set a stylesheet for a toggled button
Solved
General and Desktop
-
Just one
:
QPushButton:checked {........}
Also you probably need to set a custom border style to make your background color visible.
From documentation:
Warning: If you only set a background-color on a QPushButton, the background may not appear unless you set the border property to some value. This is because, by default, the QPushButton draws a native border which completely overlaps the background-color