is it possible to append stylesheet into existing stylesheet?
Solved
General and Desktop
-
Hey guys can I use stylesheet like this?
. └── centralWidget └── child_widget ├── ... ├── ... └── frame
in
centralWidget
put something like#frame { background-color: #ffffff; }
and in
child_widget
something like#frame { border-radius: 10; }
does it work and the targeted widget will have both
background-color
andborder-radius
or it will be replaced with the new stylesheet? -
@saeid0034 said in is it possible to append stylesheet into existing stylesheet?:
it will be replaced with the new stylesheet?
The function to set a stylesheet explicitly is called
setStylesheet
... It sets the given style... previous styles (style changes) are lost.But there are inherited styles (cascading by parent). Read here: