I m using Qt, I have multiple forms. The data from any form has to be sent using socket. also data coming over the socket has to be displayed in a main form. what could be my design so that i can share the socket connection among different forms also notify the main form when any data arrives?

you will need to create a thread that just listens for and receives data from the socket then, when ready, sends a message to the main form thread that the data is ready. I assume QT has mechanism to send and receive messages among threads.