Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0 Beta1
-
None
-
851ae1a77dc207ec11b8ed3f0786bfe1c1905e4c
Description
Create a Window with BusyIndicator.
After hiding and showing the Window again one of the following effects is observed:
- The entire window contents are spinning instead of BusyIndicator.
- One of the window elements is spinning (if any present).
- The app freezes.
- App's message loop freezes (network activity stopped etc, if any).
Setting BusyIndicator's 'running' or 'visible' properties to 'false' before closing the Window does not help.
Setting 'running' to false then waiting a second before closing the window fixes the issue.
Attached is a simple test project reproducing the issue. Open / close the dialog multiple times to reproduce.
The bug is present only on Windows. Works fine on Mac OS.
main.qml
import QtQuick 2.2 import QtQuick.Controls 1.1 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") MouseArea { anchors.fill: parent onClicked: testDialog.show() } Text { text: qsTr("Click to open the dialog") anchors.centerIn: parent } TestDialog { id: testDialog } }
TestDialog.qml
import QtQuick 2.0 import QtQuick.Window 2.0 import QtQuick.Controls 1.1 Window { Component.onCompleted: busyIndicator.running = true BusyIndicator { id: busyIndicator anchors.centerIn: parent } }
Attachments
For Gerrit Dashboard: QTBUG-37995 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
85524,2 | Fix crash with running animators on re-shown windows. | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |