QML has like doEvents?



  • 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 ?



  • Use workers for heavy processes.



  • Thanks for advice.

    I shall try workers script. :\


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.