'Change Qt Stylesheet for all Instances of a Widget
Using PyQt, is there any way to change the stylesheet for every instance of a widget without having to manually change each widget's stylesheet.
Say, for instance, I wanted every pushbutton in my application to have red text. How would I do this without having to run button.setStyleSheet() for each button? Could there possibly be a way to change PyQt's stock button class?
Any help would be appreciated :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
