Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.9.2
-
None
-
Windows 10 Pro x64, 1703, Creators Update
Qt 5.9.2 MSVC 2017 x64
AsRock Z77 Extreme4
Intel Core i5-3570
16 GB DDR3
Description
The following code produces a message box with the red X at the top right corner disabled and cannot be closed.
It should have no buttons but allow to be closed using the X at the top right corner.
QMessageBox mb(QMessageBox::Warning, "Bug", "This is a bug!");
mb.setStandardButtons(QMessageBox::NoButton);
mb.exec();