Remember, style sheets are cascading (the C in CSS) so child controls will get the style applied to a parent. I think something like this may work:
*
{
background-color: rgba(255, 255, 255, 10%);
}
{
background-image: url(some_bg.png);
background-color: gray;
}
*
{
background-color: rgba(255, 255, 255, 10%);
}
QMainWindow
{
background-image: url(some_bg.png);
background-color: gray;
}
To copy to clipboard, switch view to plain text mode
We use the * selector to set the background color of all widgets to (almost) transparent white. We then use the QMainWindow selector to set the background image on QMainWindow derived classes only.
Bookmarks