[Qt-interest] QThread deletion

Chandru... sekarwagmare at gmail.com
Sat Jun 6 12:10:36 CEST 2009


wait() is enough ...
  The thread associated with this QThread <qthread.html> object has finished
execution (i.e. when it returns from run <qthread.html#run>()). This
function will return true if the thread has finished. It also returns true
if the thread has not been started yet.


2009/6/6 Patric <userqt at gmail.com>

>  Hi all,
> one little question. Lets say I have a thread with event loop. Do I have to
> call quit before I delete the thread object ?
> For example, i think to do something like that :
> Destructor{
>     MyThread::wait();
>     delete myThreadObject;
> }
>
> But is "quit()" necessary here ? I think not, but I'm not sure.
>
> Patric
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4098 (20090522) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090606/f59ab4cd/attachment.html 


More information about the Qt-interest-old mailing list