Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Hidden BusyIndicator still running in the background, How stop it completely (Qt 6.5)
Forum Updated to NodeBB v4.3 + New Features

Hidden BusyIndicator still running in the background, How stop it completely (Qt 6.5)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 68 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    majorRonk
    wrote last edited by majorRonk
    #1
            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-scene

    Is there any solution for Qt 6.5?

    Ronel_qtmasterR 1 Reply Last reply
    0
    • M Offline
      M Offline
      majorRonk
      wrote last edited by majorRonk
      #2

      Other question:
      Is it possible to access the animator property inside of the BusyIndicator and f.e. stop it ? (i guess its a RotationAnimator)

      1 Reply Last reply
      0
      • J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote last edited by
        #3

        BusyIndicator should have a "running" property. Set that to false

        https://doc.qt.io/qt-6/qml-qtquick-controls-busyindicator.html#running-prop


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • M majorRonk
                  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-scene

          Is there any solution for Qt 6.5?

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote last edited by
          #4

          @majorRonk it still runs because BusyIndicator is running by default.
          so just use
          running: false
          visible: false

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved