I have been unable to directly change a style sheet in a class inherited from QWidget, although it works when the class is QWidget. The simplified code that does not work (nothing in constructor):
Code:
{ Q_OBJECT public: ~Banner(); }; banner = new Banner; banner->setStyleSheet("background-color: rgb(0, 100, 200);");
While this does work:
I'm sure to have missed some understanding here and would appreciate help. Thanks