[Interest] style sheet selector widgets within a QStackedWidget

Tony Rietwyk tony at rightsoft.com.au
Tue Feb 19 04:29:43 CET 2013


Hi Hamish, 

Have you tried 

	#pageWidgetName  QPushButton

Tony

> Sent: Tuesday, 19 February 2013 12:48 PM
> 
> Hi,
> 
> 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.
> 
> thanks
> Hamish





More information about the Interest mailing list