[Qt-interest] QThread deletion

Jonathan Wong jhannwong at gmail.com
Mon Jun 8 18:22:56 CEST 2009


> It depends, if you started another eventloop in the thread you will
> have to call quit() before wait(), otherwise the thread will never
> finish.

Don't I have to do an exec() in QThread's run() to enter an event loop? I thought the thread will
simply end if there's no exec() in the run().

Or you mean "another event loop" besides the main one in the main QApplication thread?

OP says his thread has an event loop in it.



More information about the Qt-interest-old mailing list