Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.15.0
-
None
-
-
a9f82b8b2c19ecc5bf5ab0d376780c34e8435202
Description
It appears to ruin more than just QMessageBoxes, but a simple example is the following (causing the messagebox not to respond on clicks)
int main(int argc, char *argv[]) { QApplication a(argc, argv); QString styleSheet = QStringLiteral( " QWidget { " " background: #ebebeb;" " } "); a.setStyleSheet(styleSheet); const QString msg = QStringLiteral("This does not work"); QMessageBox::information(nullptr, QStringLiteral(""), msg); }
I have attached an example for completeness (preventing user program exit)
Setting "background" in a stylesheet appears to be central to trigger the bug.