Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.1.0 , 5.15.2, 6.1.0
-
None
-
Linux 64-bit
Microsoft Windows 10 Pro 20H2
Description
#include <QApplication> #include <QMainWindow> #include <QMessageBox> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMainWindow w; w.resize(800, 600); w.showMaximized(); QMessageBox::question(&w, "Title", "Text", QMessageBox::Yes | QMessageBox::No); return a.exec(); }
The message box is not shown centered on the main window. The issue is a regression from Qt 5.0.2.
Attachments
Issue Links
- duplicates
-
QTBUG-94205 Message box not centered on resized and maximized QMainWindow
- Reported