how to abort QJSEngine evaluate



  • If evaluate some script that has infinite loop, how to abort the evaluation process.

    for example: evaluate some buggy JS in back thread:

    QJSEngine engine;

    void threadproc() {
    engine.evaluate("while(1){}");
    }

    How to give user a choice to abort the evaluate in main(GUI) thread.


Log in to reply
 

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