Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.6.2
-
None
-
5ed446102a74fc22a0d6d26f7112ca1c3721b43a (qtbase/5.9, 6.7.2017, 5.9.2)
Description
With the code
class Widget : public QWidget { protected: bool event(QEvent *e) override { if (e->type() == QEvent::WinIdChange) { if (const auto win_handle = windowHandle()) QWindowsWindowFunctions::setHasBorderInFullScreen(win_handle, true); } return QWidget::event(e); } }; WWidget widget; widget->setWindowState(Qt::WindowFullScreen); widget->showMinimized();
the window will not become full screen when unminimized on Windows, or rather that will not be the state the QWidget::windowState() returns after being unminimized. If QWindowsWindowFunctions::setHasBorderInFullScreen() is not used, it works as expected.
A more elaborate example that demonstrates the issue is attached as fullscreen.cc.
Attachments
Issue Links
- relates to
-
QTBUG-57882 Cannot show maximized window minimized
- Closed
For Gerrit Dashboard: QTBUG-61595 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
198382,2 | Windows QPA: Take hasBorderInFullScreen into account when checking for fullscreen | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |