[Interest] style sheet selector widgets within a QStackedWidget

Hamish Moffatt hamish at risingsoftware.com
Tue Feb 19 02:48:16 CET 2013


I've got a QStackedWidget containing several pages of other widgets etc. 
Is there a way to set the stylesheet on the QStackedWidget to affect all 
(for example) all the QPushButton components on a particular page, but 
not all pages?

I can use the QPushButton selector which affects all pages, or use 
#buttonName which affects a particular button, but I haven't found a way 
to select by combination of the two.

I can override the stylesheet on the individual pages if necessary but 
it would be nice to keep it all in one place.


More information about the Interest mailing list