How to undo QJSEngine rating

If you are evaluating some script that has an infinite loop, how to abort the evaluation process.

for example: evaluate some JS buggy in the reverse flow:

QJSEngine engine;

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

How to give the user the opportunity to interrupt the assessment in the main (GUI) stream.

+5
source share

Source: https://habr.com/ru/post/1234688/


All Articles