Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.12.7, 5.15.0
-
None
-
macos 10.15.6, Qt 5.12.7, clang64
-
-
15b385af9 (dev), 52016f3ae (6.8), 3351a7215 (tqtc/lts-6.5)
Description
When running property of BusyIndicator is changed too fast, it stays in inconsistent state - running property is true, but BusyIndicator is hidden.
//test code import QtQuick 2.12 import QtQuick.Controls 2.12 Item { width: 200 height: 200 Column { anchors.centerIn: parent BusyIndicator { id: testIndicator width: 50 height: 50 onRunningChanged: console.log("onRunningChanged",running) } Button { text: "run test" onClicked: { console.log("lets stop it") testIndicator.running = false console.log("lets start it") testIndicator.running = true } } } }
At the beginning, BusyIndicator is running. After you click on "run test" button, ButtonIndicator stays hidden, even though according to logs, its running property is correctly set to true.
qml: lets stop it qml: onRunningChanged false qml: lets start it qml: onRunningChanged true
My real issue is when BusyIndicator is used along with StateMachine framework:
BusyIndicator { width: 50 height: 50 running: stateDownload.active || stateProgram.active }
As state machine is switching from stateDownload into stateProgram, for a very short moment, both states are not active, so BusyIndicator stops. But as stateProgram became active, BusyIndicator wont start.
Attachments
Issue Links
- is duplicated by
-
QTBUG-96254 BusyIndicator breaks from settings running to false, then to true
-
- Closed
-
For Gerrit Dashboard: QTBUG-85860 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
594118,6 | Fix BusyIndicator being hidden when running is changed quickly | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
595075,2 | Fix BusyIndicator being hidden when running is changed quickly | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
595147,4 | Fix BusyIndicator being hidden when running is changed quickly | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | +1 |