Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7, 6.8
-
None
Description
If QQuickWindow was closed, then later resized and re-opened, the contentItem size is not updated. This happens only in Windows.
Minimum example:
import QtQuick import QtQuick.Controls Window { x: 20 y: 20 width: 100 height: 100 visible: true Window { id: window x: 100 y: 20 width: 400 height: 400 visible: true color: "green" Rectangle { anchors.fill: parent color: "red" } } Button { text: "Test" onClicked: { window.close() timer.start() } } Timer { id: timer interval: 200 onTriggered: { window.width = 800 window.show() } } }
After clicking the "Test" button in the first window, the second window will be re-opened with the new size, but the red rectangle will occupy only half of its width.