[Qt-interest] Question regarding QThread object affinity

Patric userqt at gmail.com
Mon Jun 8 20:14:19 CEST 2009


Hello, 
I have a question regarding threads. 
Let's assume we have a A. In that class, we have instance of class B as a member. We also have a QThread - class C. 
The class B member is not a pointer. 
What if I call "member_B.moveToThread()", how will the object member_B be deleted ?
Usually, it'll be deleted when the object_A is destroyed. But now it's moved to another thread, who is responsible for it's deletion ? 

Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090608/40c8edb2/attachment.html 


More information about the Qt-interest-old mailing list