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.
Introduced in Qt 5.14 are new QJSEngine methods to help abort infinite running executions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With