Re: Threading, separate GUI and worker stuf
You didn't provide much detail regarding what you need to do once you receive data. The Qt networking classes operate asynchronously and if you're using the TCP/IP protocol, you may find that you don't even need a worker thread. If UDP, you'll find that you lose/miss UDP packets at high volumes, but depending on your application, that may be completely acceptable, after all UDP is designed as a connection-less protocol and doesn't guarantee delivery of packets in a certain sequence, or even at all for that matter.
Without much more detail to go on, I'd suggest that you first try use using Qt networking classes asynchronously. If that doesn't work for your app, then use Qt's signal/slot mechanism to pass data back and forth between your GUI thread (main thread) and your worker thread. By default, Qt will use queued connections, which work great when messaging between worker and main threads.
Good luck.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks