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. QML has like doEvents?

QML has like doEvents?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.4k 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
    dFrontia
    wrote on last edited by
    #1

    I want show any indicate for heavy process.

    In heavy process starting, Visible the indicator.
    but, dosen't show Indicator....

    @
    Rectangle {
    width: 360
    height: 360
    Text {
    id : waitIndicate
    text: "PLEASE WAIT"
    visible: false
    anchors.fill : parent
    }

    MouseArea {
        anchors.fill: parent
        onClicked: {
            //Indicate show
            waitIndicate.visible = true
            
            //doEvent();  if use in .net framework 
            
            //Haevy Process
            for( var cnt = 0; cnt < 6000; cnt ++){
                console.debug(cnt)
            }
            //Indicate Hide
            waitIndicate.visible = false
        }
    }
    

    }
    @

    in this case of .net Framwork on microsoft.
    use the doEvents(). application method.

    doEvents means handles stacked EventHandler Messages.

    Do QML have something like that ?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      Use workers for heavy processes.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dFrontia
        wrote on last edited by
        #3

        Thanks for advice.

        I shall try workers script. :\

        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