Unsolved Don't apply App stylesheet to one window
-
I have app level stylesheet that I use in my application. The stylesheet contains styles for 9 controls (and multiple states for each one, so quite a big stylesheet). I don't want to apply it to Settings & couple of other window of my app - so that they have native look. Can't figure out how to Not apply that Application stylesheet to the Settings etc windows and its controls.
Tried calling
setStylesheet("");
on window and its controls but that didn't work. Any ideas? Is it possible to apply default stylesheet to Settings window/child widgets somehow?
-
Hi,
The most simple would be to ensure your stylesheet only concerns the exact widget types you want to style by being precise.
-
@SGaist said in Don't apply App stylesheet to one window:
Hi,
The most simple would be to ensure your stylesheet only concerns the exact widget types you want to style by being precise.
Thats the issue, I have so many widgets on multipole windows. It'll be too rigid of a solution to specify exact widgets - prone to breakage if I add/remove widgets or make changes to stylesheet. Is there anyother way?
-
You could use a dynamic property.
-
@SGaist said in Don't apply App stylesheet to one window:
You could use a dynamic property.
Already using that to separate different styles of Labels