Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
6.4.2, 6.4.3, 6.5.3
-
None
Description
Consider this simple application:{}
#include <QApplication>
#include <QMainWindow>
#include <QWebEngineView>auto main(int argc, char * argv[]) -> int
{
auto Application = QApplication{argc, argv};
auto MainWindow = QMainWindow{};
auto WebEngineView = QWebEngineView{&MainWindow};
MainWindow.setCentralWidget(&WebEngineView);
MainWindow.showMaximized();
return Application.exec();
}
This will not show the MainWindow as maximized as you would expect. Since I'm getting this error on Windows and Linux, I don't think it has anything to do with a window manager.
Interestingly, on Windows, I get a maximized window flicker and then it immediately goes back to the small default size window.
Additionally, if I load some web page in the WebEngineView before calling showMaximized(), I get a maximized window. If I load the web page after showMaximized(), the window is not maximized. If I call showMaximized() again, after loading the page, I get a maximized window.
Attachments
For Gerrit Dashboard: QTBUG-115074 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
502032,2 | WIP: Race condition on tlw recreation during for example window maximized | dev | qt/qtbase | Status: NEW | -2 | 0 |