PDA

View Full Version : how to send data using QTcpSocket and QTcpServer



gauravg
31st March 2012, 09:57
hi all please tell me i have main thread which is responsible for gui (ie main mainwindow and dialog). i want to entering data in dialog should be send to another thread that read data from a socket and display that data in main window in QList . I am confuse which thread i have to make QTcpSocket and which QTcpserver .i want to use Socket programming to send and receive data and display on main window.



thanks with regards:
gauravg

wysota
31st March 2012, 12:29
Why are you using a separate thread for handling the socket?