PDA

View Full Version : Stylesheet Universal Selector exclude widgets



Henry Blue Heeler
24th March 2016, 03:30
I have a simple stylesheet in Designer for a QMainwindow

* { font-family:"System"; font-size: 12pt; }
I would like exclude QMenuBar from inheriting that font.

QMenuBar {} /* set to default, doesn't work */
Any suggestions?

ChrisW67
26th March 2016, 22:18
There is no way to reapply the default value, you can only apply a particular value. So, set a particular value for QMenuBar or set the global style only on the central widget rather than the QMainWindow instance.

Henry Blue Heeler
27th March 2016, 05:40
set the global style only on the central widget rather than the QMainWindow instance.
How could I be so dense? SMH. Thanks.