is there equivalent statement goto in QML or new idea for refactoring it?



  • i need a statement when i call it,the processor program from javascript source function , goes to special line like 9 in a qml file that i want to it.
    or in otherwords my question is :
    is there a statement like goto (in c++), in qml?



  • QML uses JavaScript, there is no goto in JS, so no.

    If you post some code with what you try to illustrate, there is likely a proper way to do it without goto.



  • last night my problem is solved.i need goto in my code.
    finally i define a function in that line,and i call it,i.e. the function can same goto for programmer.

    function sample()
    {
    
    
    }
    
    ....
    
    sample();
    

    thanks for attention.


Log in to reply
 

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