[Qt-interest] QThread after finishing its job

Miguel Cardenas mfcardenas at gmail.com
Fri Oct 30 21:34:51 CET 2009


Hi

A few weeks ago I asked about a trouble related to QThread... Somebody
(Andreas) told me not to reuse the QThread object, but create a new one if I
require to start again a thread.

My doubt is: should I do delete the already finished QThread object? does it
"die" and erases itself after it exits? I have an application with a button
that launches a QThread, but don't know what to do after it exits by a
normal "return;" call.. or do I have to use QThread::quit() or
QThread::exit(0) ? by calling these functions the object and thread dies
itself and does not require to be deleted?

Thanks for you comments

-- 
Miguel Cardenas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091030/8d46cc14/attachment.html 


More information about the Qt-interest-old mailing list