On quarta-feira, 29 de janeiro de 2014 18:24:10, Konrad Rosenbaum wrote:
> > But it seems to be impossible to connect a slot from a thread to a signal
> > of the QNAM created QNetworkReply object.
> 
> This should not be a problem. You can connect signals and slots across
> thread  boundaries without problems. What specifically is going wrong for
> you? Do you have trouble handing over the QNetworkReply?

Forget it.

QNetworkAccessManager and QNetworkReply are *not* thread-safe. They are 
reentrant only, with the added catch that the QNetworkReply must be used in 
the same thread as the QNetworkAccessManager for at least as long as it's 
still receiving data.

You could try to move it after the finished() signal, but at that point you 
might just do a readAll() and pass the QByteArray in a signal.

-- 
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