Hi everyone, i developed a client-server programm using the great Qt Framework.my problem is: in the client side i have a QMainWindows in witch i defined a QTcpSocket in order to change dada with the server. before closing the QMainWindow i have to sent to the server that a specified client is disconnected. i use that by implementing the closeEvent methode. but when i closed the QmainWindows it seems that the socket is closed also and all pending data are lost.so how to check if all data were sent to do server before the QMainWIndows was closed or simply avoiding the close of the socket untill all remaining data are sent. can you please help me, thank you so much in advance
Bookmarks