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. BusyIndicator stops animating
Forum Updated to NodeBB v4.3 + New Features

BusyIndicator stops animating

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 376 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CodeCruncher
    wrote on last edited by
    #1

    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
            }
        }
    }
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      CodeCruncher
      wrote on last edited by
      #2

      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.

      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