Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.2
-
None
-
9babaac16da14657ccf8629419328bf05c866eed
Description
in the following test case, setStyleSheet is called twice.
Then setting the stylesheet with an empty string doesn't reset the widget stylesheet.
#include <QtGui> int main(int argc, char *argv[]) { QApplication a(argc, argv); QLineEdit edit; //edit.ensurePolished();//this line can be used as workaround for this issue edit.setStyleSheet("QLineEdit{background-color:blue;}"); edit.setStyleSheet("QLineEdit{background-color:red;}"); edit.setStyleSheet(""); edit.show(); return a.exec(); }
Attachments
Issue Links
- resulted in
-
QTBUG-39427 Repeatedly setting a widget style sheets has issues
- Closed
-
QTBUG-76945 macOS: When providing your own icons for a dock widget titlebar in a stylesheet, the old one can be drawn on top
- Closed
For Gerrit Dashboard: QTBUG-18958 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
355579,2 | Repolish child widgets when parent style sheet changes | dev | qt/qtbase | Status: MERGED | +2 | 0 |