Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.1.0
-
None
-
Arch 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 does not affect Qt 4.8.7.
Attachments
Issue Links
- is duplicated by
-
QTBUG-94206 Message box not centered on resized and maximized QMainWindow
- Closed