0

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?

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Ancient Dragon
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.