BusyIndicator stops animating
-
I think I found another bug in 6.2 (or I'm not grasping something).
Simple repro below - run just with qml command line app.If the containing Popup for a BusyIndicator is open & closed, the indicator animation never animates anymore on subsequent Popup opens. Validated that the BusyIndicator.running property is still true.
import QtQuick 6.2 import QtQuick.Controls 6.2 Window { id: root visible: true width: 500 height: 300 color: "lightgray" Text { anchors { left: parent.left; right: parent.right } text: "Click open, observe spinning busy indicator, click close, then click open again and busy indicator no longer animates." wrapMode: Text.Wrap } Button { y: 50 text: "open" onClicked: { console.log("busySpinner.running", busySpinner.running); statusPopup.open(); } } Button { x: 100 y: 50 text: "close" onClicked: statusPopup.close() } Popup { id: statusPopup width: 200 height: 150 anchors.centerIn: parent closePolicy: Popup.NoAutoClose // BUG BusyIndicator will not animate anymore once containing Popup // is open/closed once,despite the running property still being true. BusyIndicator { id: busySpinner height: 35 width: 35 running: true } } }
-
I've worked around this by putting the Popup in a separate qml file and using a Loader to get a fresh Popup every time I want to display it. But it still seems broken that a Popup can't be open/closed multiple times and have the BusyIndicator just continue to work.