When I run QWebFrame::evaluateJavaScript(scriptSource)
from main thread everything seems to work just fine. But when I try to run it from a different thread I get a SyntaxError: Parse error
. Even when I'm trying to run trivial code like 1+1;
.
Can somebody explain why this occurs and whether this is the expected behavior?
Is there a possibility to use the QWebKit in another thread then the main thread?
P.S.: I am running Qt4.8