hi ,all.
i use evaluateJavaScript , but i find that is so slow.
i hope like QWebEngineView runJavaScript , asynchronous call.
How do you give me a hint?
thanks.
hi ,all.
i use evaluateJavaScript , but i find that is so slow.
i hope like QWebEngineView runJavaScript , asynchronous call.
How do you give me a hint?
thanks.
Bear in mind that QWebEngineView also has a single thread for the JavaScript world so the amount of time it takes to execute your script is similar, only that it doesn't block the UI. If you are only about asynchronousness, you can spawn a Worker in JS and make it execute your code.
Thank you for your help.
i use QWebView , when call evaluateJavaScript , UI is blocked.
how to solve this problem.
Same problem with me. This issue appears to be unresolved. https://forum.qt.io/topic/12974/eval...-main-thread/3
my code:
Qt Code:
QTime time; time.start(); this->page()->mainFrame()->evaluateJavaScript(method); qDebug()<<"time is : "<<time.elapsed();//1205msTo copy to clipboard, switch view to plain text mode
Bookmarks