On quinta-feira, 5 de setembro de 2013 14:27:22, Benjamin Zeller wrote:
> > *Note:*The returnedQTcpSocketobject cannot be used from another thread.
> > If you want to use an incoming connection from another thread, you need
> > to overrideincomingConnection().
> 
> In fact we did override incomingConnection().
> Creating the QTcpSocket manually. But maybe QTcpSockets can not be
> moved between threads?

Yes, you can. The documentation note appears to be incomplete.

You can move, provided you first unset the parent of that QTcpSocket. The 
sockets that QTcpServer returns are parented to itself by default.

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