January 2018
Intermediate to advanced
486 pages
11h 28m
English
You can set style sheets for the whole application, parent widgets, or child widgets. In our preceding examples, we simply set the style sheets for two child widgets. The styling of each widget will be decided on the cascading rule, which simply means that each widget will also get the style rules set in parent widget or the application if there are any style sheets set for them. We can use this fact to avoid redundantly setting the style rules that are common to the entire application or a specific window in each widget over and over again.
Now, let's try the following style sheet in MainWindow, which combines all you've learned in a single and simple example. Make sure you delete all previously set style sheets (for the two