In QWebView i can execute javascript code.
But QWebView isn’t for running in threads and i’d like to move the execution to threads.
Is there a way of executing a javascript inside a QDomDocument?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to execute Javascript code in a thread different from the UI thread you might want to have a look at the WorkerScript QML element and this document which explains the relationship between Javascript and QML. I’ve never tried but it should be a correct way of doing what you’re asking.