Hidden BusyIndicator still running in the background, How stop it completely (Qt 6.5)
-
BusyIndicator { id: busyIndicator width: 120 height: 120 anchors.horizontalCenter: rootImage.horizontalCenter anchors.top: rootImage.top anchors.topMargin: 70 visible: root.visible }I try to set visible and/or running of the BusyIndicator to false but somehow its still running in the background and using a lot of cpu although its hidden.
Problem disappears when i manually minimize and maximize the app window.
I found an old thread and a bugfix with similar problem. But the customized BusyIndicator didnt fix the problem for me.
https://codereview.qt-project.org/c/qt/qtdeclarative/+/594118
https://forum.qt.io/topic/122897/what-causes-qsgrenderthread-to-have-constant-cpu-usage-on-a-static-sceneIs there any solution for Qt 6.5?
-
BusyIndicator should have a "running" property. Set that to false
https://doc.qt.io/qt-6/qml-qtquick-controls-busyindicator.html#running-prop
-
BusyIndicator { id: busyIndicator width: 120 height: 120 anchors.horizontalCenter: rootImage.horizontalCenter anchors.top: rootImage.top anchors.topMargin: 70 visible: root.visible }I try to set visible and/or running of the BusyIndicator to false but somehow its still running in the background and using a lot of cpu although its hidden.
Problem disappears when i manually minimize and maximize the app window.
I found an old thread and a bugfix with similar problem. But the customized BusyIndicator didnt fix the problem for me.
https://codereview.qt-project.org/c/qt/qtdeclarative/+/594118
https://forum.qt.io/topic/122897/what-causes-qsgrenderthread-to-have-constant-cpu-usage-on-a-static-sceneIs there any solution for Qt 6.5?
@majorRonk it still runs because BusyIndicator is running by default.
so just use
running: false
visible: false