I just tried this:
The widget's background color is not set, its children's background colours are!Qt Code:
setStyleSheet ("background-color: red"); } }To copy to clipboard, switch view to plain text mode
How do I prevent the stylesheet from being inherited?
I've been trying to use the backgroundRole property instead -- to no effect. I need a solution in stylesheets for other reasons.
Thanks a lot, the folks on this forum have been a great help so far.
Bookmarks