Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.2, 5.12.3, 5.13.1, 5.14.0
-
None
-
Ubuntu 18.04
-
-
4f370d36ec5caa02f78545ceee5704d94edf0530(5.14) 283d9b01dc3ab6c95c688b0e5f5c98c41ca22d30(5.12)
Description
Showing a GUI application with `showMinmized()` doesn't work on Ubuntu 18.04 and the window is displayed on the screen as if I started it with `showNormal()`.
Note that it works fine on Ubuntu 16.04.
I found that if I execute `mainWindow->showNormal(); mainWindow->sesWindowState(Qt::WindowMinimized);` the window is minimized.
Steps to reproduce this issue:
- open the "Main Window" example
- change `mainWin.show();` in `main.cpp` with `mainWin.showMinimized()`
- recompile and run
-> the window is visible at start
Attachments
Issue Links
- relates to
-
QTBUG-69711 [REG 5.9->5.10] QWindow doesn't restore previously maximized state after calling showMinimized()
- Reported
-
QTBUG-68864 tst_QWidget_window::setWindowState autotest fails on Ubuntu 18.04
- Closed
For Gerrit Dashboard: QTBUG-76354 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
263553,8 | xcb: Fix logic for minimized state | 5.14 | qt/qtbase | Status: MERGED | -1 | 0 |
264929,3 | Hide window when showMinimized is used | 5.12 | qt/qtbase | Status: ABANDONED | 0 | 0 |
290834,4 | xcb: set _NET_WM_STATE_HIDDEN when minimized | 5.14 | qt/qtbase | Status: ABANDONED | 0 | 0 |
292896,2 | xcb: Fix logic for minimized state | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |