Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.11, 5.15.13, 6.2.6, 6.4.0, 6.5.0
Description
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 Window { id: wnd width: 640 height: 480 visible: true visibility: Window.Maximized Button { anchors.centerIn: parent text: "Minimize Me" onClicked: wnd.showMinimized() } }
Steps to reproduce
- Build and run the code above
- Use a native OS method to minimize the window (press [Win]+D, or click the Minimize button at the top-right corner of the window frame, or click the window's taskbar icon)
- Click the taskbar icon to restore the window
- Click the Qt Quick Button ("Minimize Me") to minimize the window via showMinimized()
- Click the taskbar icon to restore the window
Outcomes
- After Step #3, the window returns to its maximized state (expected)
- After Step #5, the window appears as if showNormal() was called (unexpected)
Notes
When a QWidget is minimized using QWidget::showMinimized(), clicking its taskbar icon returns it to its maximized state (as expected). This issue only affects Qt Quick windows.
Attachments
Issue Links
- duplicates
-
QTBUG-69711 [REG 5.9->5.10] QWindow doesn't restore previously maximized state after calling showMinimized()
- Reported
Gerrit Reviews
For Gerrit Dashboard: QTBUG-107733 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472814,4 | Restore window visibility from minimized Windows | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
438827,3 | Fix re-maximization after showMinimized | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |