Page 1 of 1

How can i make a new thread for my plugin

Posted: Sun Aug 23, 2020 4:10 am
by Authur
Hi
I develop a plugin which use the 'createprocess' to call the cmd for realizing the function,however when i use the 'waitforsingleobject' to monitor that if the cmd has exited,the program always become no responding,so i think that i should create new thread for the plugin,but i don't konw how to do that,if everyone know,please tell me!
Thanks a lot
Authur

Re: How can i make a new thread for my plugin

Posted: Sun Aug 23, 2020 10:04 am
by daniel
You could either use the "Qt Concurrent" framework (see https://doc.qt.io/qt-5/qtconcurrent-index.html).

Or create a QThread, etc.

Re: How can i make a new thread for my plugin

Posted: Tue Aug 25, 2020 6:21 am
by Authur
ok!thanks a lot!