I need to process script in separate, non-GUI thread since script calls C++ function that can take very long time to process (seconds). Is it possible to connect QScriptEngineDebugger
to my QScriptEngine
in non-gui thread?
The problem is - if I put QScriptEngineDebugger
in same thread as QScriptEngine
(non-gui) than debugger will crash on debug - the code shows that it wants to create it's debug window and such window can be created only in GUI thread. And if i place QScriptEngineDebugger
in GUI thread application will crash since QScriptEngine
is not thread-safe. Any insights?