On sexta-feira, 10 de janeiro de 2014 14:32:01, Frank Hemer wrote:
> QtSoapHttpTransport::QtSoapHttpTransport(QObject *parent)
>     : QObject(parent), networkMgr(this)
> {
>    ...
> }
> 
> Is there any reason why the QNetworkAccessManager needs to be initialized
> with  the 'this' reference?

Yes. If the QtSoapHttpTransport object is moved to another thread with 
moveToThread(), its child objects will be moved too.

> Seems like a wrong approach to me - maybe because it used to be a pointer
> at  some point in time?
> 
> I found this when analyzing some weird and not really reproducible stack 
> traces ...

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to