Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.12.5
-
None
Description
Setting stylesheet on a widget for the second time (after it is showed) don't update children widget stylesheets.
From a simple standard QWidget app projet:
QApplication a(argc, argv); MainWindow w; w.setStyleSheet("QWidget { background-color: rgb(200, 100, 100) }"); w.show(); w.setStyleSheet("QWidget { background-color: rgb(100, 100, 200) }"); return a.exec();
Expected result (works with Qt 5.11.1):
Result with Qt 5.12.5:
Complete small project in attachment.
Attachments
Issue Links
- duplicates
-
QTBUG-77006 [REG: 5.12.3->5.12.4]: Changing a stylesheet at runtime does not effect children that are not direct children of the widget being changed
- Closed