Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.2
Description
When window is maximized after being in full screen mode, it first sets the geometry to the one saved for Normal mode before maximizing the window which to the user looks like flickering . The expected behavior of the Windows app (like Chrome or Word) would be to set it directly to the geometry matching the maximized window size instead of going first via geometry which was set for the Normal mode.
import QtQuick import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts Window { id: root width: 1000 height: 2000 visible: true Item{ anchors.fill:parent ColumnLayout{ id: myColumnLayout anchors.centerIn: parent anchors.margins: 15 spacing: 15 Button{ id: btnNor Layout.fillWidth: true height: 150 text: "NORMAL" onClicked: { showNormal() } } Button{ id: btnMax Layout.fillWidth: true height: 150 text: "MAXIMIZE" onClicked: { showMaximized() } } Button{ id: btnFull Layout.fillWidth: true height: 150 text: "FULL" onClicked: { showFullScreen() } } } } }
Way to reproduce:
1) Click "FULL" button to enter the full screen mode
2) Click "MAXIMIZE" button to enter the maximized mode, Window seems to flick as it updates and debugging the code reveals it first sets the geometry to a normal geometry before maximized. This seems to be inconsistent if compared to the other native Windows applications.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-117377 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
507332,7 | Windows QPA: Stop unnecessary window movement when exiting Fullscreen | dev | qt/qtbase | Status: NEW | +2 | 0 |