PDA

View Full Version : Issue with StyleSheet



EmilianoM
3rd June 2013, 21:44
Hi all,

I got a project with a lot of pushbuttons and i want to have the same stylesheet in all of them ¿Is there any way to avoid right click->Change stylesheet and copy paste one by one?

Regards,

ChrisW67
3rd June 2013, 22:17
Adjust (to target the styles) and set the stylesheet on the widget that contains the push buttons, or the top level window. Or sub-class QPushButton to create MyPushButton that sets the style in its constructor, and use MyPushButton instead of the bare button.