KLAI - 2020-09-24

Hi all,

I'm developping a Qt application that uses PythonQt.
I'm running this code in Qthread :

PythonQt::init(PythonQt::IgnoreSiteModule | PythonQt::RedirectStdOut);
PythonQtObjectPtr m_mainContext = PythonQt::self()->getMainModule();
m_mainContext.evalScript(script_python);

When I stop the thread, it's not stopped immediatly, it wait for the evalscript to finish, and then the thread stopped.
I want to know, how to make it stop immediatly, and end the evalscript?

Thank you in advance.

 

Last edit: KLAI 2020-09-24