How to manipulate a thread
I need to create a thread such that it can be paused, stoped, and restarted. I already know how to make it restart, but the other cases I still dont know how to do it. I have used wait() for stopping it, and sleep(1) for pausing it; in both cases the GUI frezzes. I would thank if someone could put an example on this matter.
Thanks.
Re: How to manipulate a thread
If you want to stop the thread, you just have to make it return from run(). For pausing, take a look at QWaitCondition.