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. "stackView is busy" problem
Forum Updated to NodeBB v4.3 + New Features

"stackView is busy" problem

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 464 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.
  • D Offline
    D Offline
    dauuser
    wrote on last edited by dauuser
    #1

    hy @ all
    my app has some serious problems with a StackView. when a co-worker was testing the app, he was able to get it freezed, because he was tapping very fast on the screen. so I tried to spot the error, and finally found the problem.
    it only happens when the MouseArea contains stackView.push(a component) or stackView.pop(). I suppose it's because the stackview is busy while the second (or even third, fourth...) click is registered and it then freezes the app. need to be said, that after a while the app sometimes starts working again, but most of the time a restart is needed.
    anyway, I've created this workaround in the stackview:

             onBusyChanged: {
                if(stackView.busy){
                    // don't show stackView, so no further clicks are possible
                    stackView.visible = false
                    console.log("busy")
                } else{
                    // show stackView again
                    stackView.visible = true
                    console.log("not busy anymore")
                }
            }
    

    but this seems not like a solution for me, because in another app the problem doesn't appear.
    do you guys have any clues about what happens here? let me know if you need more code/information

    thanks in advance!

    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