Why don't you use Qt for networking as well? It would behave better than using a blocking socket with an event driven gui.