You don't need timers --- thread can posts such event when it finishes.Originally Posted by Mike
You don't need timers --- thread can posts such event when it finishes.Originally Posted by Mike
Or even emit a signal.
In Qt3?Originally Posted by wysota
I was speaking in general terms. QThread in Qt3 doesn't provide a signal for that, but you still can emit one (by sending an event, processing it and emitting a signal from the thread using the custom event handler and a wrapper (like void MyThread::emitFinished(){ emit finished(); })Originally Posted by jacek
Last edited by wysota; 23rd January 2006 at 19:29.
Because QThread doesn't inherit QObject in Qt3. You would have to use multiple inheritance.Originally Posted by wysota
Read the docs on QThread, the examples given are enough for your case. You just have to post an event to the main / gui thread to alert it that the operation has finished. The GUI programming with qt3 book also has some very usefull examples.
Hmm... true, I didn't notice that.Originally Posted by jacek
Bookmarks