Qt 6.12 LTS is out! See what's new in the release
blog
Script engine, script value, and threading
General and Desktop
1
Posts
1
Posters
567
Views
1
Watching
-
Lets say I make a QScriptEngine (or QJSEngine, lets not worry about which) and move it to a new QThread. Then later I call evaluate on the script engine and get back a QScriptValue. Assuming the QScriptValue is function (i.e. isFunction() is true), when I use the .call() on the QScriptValue, does it execute in the thread I moved the QScriptEngine to? You can't move the QScriptValue itself because it isn't a QObject subclass.
I know there is a setProcessEventsInterval - lets leave that out of the conversation for the moment.
Thanks!