Important: Please read the Qt Code of Conduct -

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() {

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

Log in to reply