[Interest] question about moveToThread docs

Alan Ezust alan.ezust at gmail.com
Tue Feb 10 23:48:31 CET 2015


from the documentation of QObject::moveToThread():

    \note A QObject's member variables \e{do not} automatically become
    its children. The parent-child relationship must be set by either
    passing a pointer to the child's \l{QObject()}{constructor}, or by
    calling setParent(). Without this step, the object's member variables
    will remain in the old thread when moveToThread() is called.

Is this talking about member variables of type QObject ?
As in, "subobjects" ?

subobjects of type QObject that also have a parent set, might get
destructed twice, but is that what this above paragraph is recommending?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150210/5ff20753/attachment.html>


More information about the Interest mailing list