Search - User list
Full Version: Stylesheet: background-color of QWidget
Root » SI Users » Stylesheet: background-color of QWidget

I noticed that the background-color af a QWidget is not the grey color that I would expect (rgb(58, 58, 58))
I had a look in the stylesheet and the QWidget is prepended with a dot.

.QWidget { background-color: rgb(58, 58, 58); }
If this dot is removed the background gets the grey color. I am probably missing something but what is the purpose of the dot?

Best Regards,
I had a look in the qt docs (which I should have done in the first place)

The dot-selector matches instances of the class, but not of its subclasses

Qt Stylesheet syntax []
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB