Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
Description
As seen in QTBUG-129839 the drawing of a Rectangle can be out of sync with the background (clear) color when resizing a window:
import QtQuick import QtQuick.Controls.Basic Window { id: root property bool isExpanded: false readonly property int normalWidth: 600 readonly property int normalHeight: 300 readonly property int expandedWidth: 900 readonly property int expandedHeight: 600 visible: true x: Screen.width / 2 - normalWidth / 2 y: Screen.height / 2 - normalHeight / 2 width: root.normalWidth height: root.normalHeight color: "magenta" Rectangle { anchors.fill: parent color: "black" } StateGroup { states: State { name: "expanded" when: root.isExpanded PropertyChanges { root { width: root.expandedWidth height: root.expandedHeight } } } transitions: Transition { reversible: true to: "expanded" NumberAnimation { properties: "width, height" duration: 5000 easing.type: Easing.InOutQuad } } } Button { anchors.centerIn: parent text: "Animate Window" onClicked: root.isExpanded = !root.isExpanded } } EditDelete
See initial analysis in om.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-833605
Attachments
Issue Links
- is required for
-
QDS-13905 Menus sometimes have transparent background
- Closed
- resulted from
-
QTBUG-129839 6.8: Programmatically resized window stalls for initial part of resize animation
- Closed