Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
5.9.2
-
None
-
Qt 5.9.2 with msvc2015_64.
Description
In 5.9.2, even a simpleĀ `QMessageBox` program may complain the following warnings:
QWindowsWindow::setGeometry: Unable to set geometry 100x30+257+185 on QWidgetWindow/'QMessageBoxClassWindow'. Resulting geometry: 126x110+257+185 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 126x110, maximum size: 126x110).
Qt 5.7.1 and 5.9.1 do not have this issue.
Example program:
#include "widget.h" #include <QtWidgets> Widget::Widget(QWidget *parent) : QWidget(parent) { QMessageBox msgBox(QMessageBox::Information, tr("Test"), tr("Welcome!"), QMessageBox::Ok, this); msgBox.setInformativeText(tr("abc")); // msgBox.setMinimumSize(msgBox.minimumSizeHint()); msgBox.exec(); } Widget::~Widget() { }
Uncomment the `setMinimumSize()` line will eliminate this warning.
Attachments
Issue Links
- is duplicated by
-
QTBUG-73258 Constantly getting QWindowsWindow::setGeometry: Unable to set geometry warning
- Closed
-
QTBUG-68351 Qt delivers warning about setGeometry on opening a dialog
- Closed
- relates to
-
QTBUG-58027 QWindowsWindow::setGeometry: Unable to set geometry
- Closed