View Full Version : Send data over TCP

20th October 2015, 20:30
Hi guys,

i used the tutorial from this page:

now i wanted to send data from the gui to the thread by using signals and slots (click on pushButton)

unfortunatly i am getting an error:
Socket notifiers cannot be enabled or disabled from another thread

the socket was defined and started inside of the thread. Can i leave the socket definition inside of the thread ?


21st October 2015, 00:37
Unless you have very specific needs, you do not need a separate thread. The Qt socket classes are asynchronous and will not block your main thread, etc.