Re: [Interest] QTcpSocket from QTcpServer

2012-07-17 Thread Lucas.Betschart
Thanks for the answer, I've found the problem. I called a Qt Slots from outside my object from a non Qt-Thread (std. Linux thread). I've fixed the problem by call a function of my (Qt) instance which emits a signal that is connected to my slot. ___ Int

Re: [Interest] QTcpSocket from QTcpServer

2012-07-16 Thread Thiago Macieira
On segunda-feira, 16 de julho de 2012 13.23.01, lucas.betsch...@crypto.ch wrote: > I got a thread access problem with QTcpSocket. [cut the description that doesn't talk about QThread] > The QTcpServer documentation says: > Note: The returned QTcpSocket object cannot be used from another thread. I

[Interest] QTcpSocket from QTcpServer

2012-07-16 Thread Lucas.Betschart
Hi, I got a thread access problem with QTcpSocket. In the initialisation of my object I got 2 QTcpServer created listening on 2 different ports. For each of them I got a the signal newConnection() linked to a different slot. In each I save the QTcpSocket I get from nextPendingConnection(). No