i have a thread which does long operation. while its operates i want to terminate thread. The thread isn't in loop.
I have tried QThread::terminate() and QThread::wait() methods. But sometimes my program is freezing at QThread::terminate() method.
I have searhed the forum. There is another way for this is using flags but i can't interfere in loop of thread because i am calling another function from external lib.
Is there any other way for terminating thread.
Thanks in advance
Ramazan