Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.15.2
-
None
-
Windows 10 Version 20H2 (19042.804)
Description
Maximizing a frameless window using shortcut (Winkey+ArrowUp) makes the window fullscreen
Expecting result: windows taskbar is visible
Code:
#include <QApplication> #include <QWidget> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget w(0, Qt::Window | Qt::WindowMinMaxButtonsHint | Qt::FramelessWindowHint ); w.showNormal(); return app.exec(); }
After building, use Winkey+ArrowUp to maximize the window, and see the result.
Some other information:
- Also tested under Archlinux with KDE, x11, Qt 5.15.2 from Arch repo, works fine, so it seems is a Windows-only issue.
- If we have two monitors, other than using shortcuts, showMaximize() also behave wrong on one of the monitors.
- May related
QTBUG-8361( https://bugreports.qt.io/browse/QTBUG-8361?focusedCommentId=542002#comment-542002 ), the workaround mentioned in that comment (add Qt::WindowTitleHint) also doesn't work on my side.
Let me know if you need any additional information.
Attachments
Issue Links
- relates to
-
QTBUG-4362 Windows: showMaximized() doesn't consider taskbar when using Qt::CustomizeWindowHint to remove the title bar
- Closed
-
QTBUG-8361 Maximizing a frameless window makes the window fullscreen
- Closed
-
QTBUG-86899 showMaximized() does showFullScreen() on secondary screen on Windows 10 even if the taskbar is shown (frameless window)
- Closed