Hi.
First 'n in advance, sorry for my poor English, I'm french

the context : I'm developping some kind of network layer in order to use IRC servers for doing point to multipoint communication between clients without the need of a dedicated server.

Here is my problem :

I would like to create a class IRCConnexion that holds a QSocket and manages every message sent to /received by the server.
This class will have functions like this one :
QDict<Channel>* getChannelList();

This function would do 3 things :
- emitting a request message for the channel list.
- getting each server's response and putting them into the QPtrList
- returning the QDict.

This function could be called in a function inside the main window like this :

ptr = getChannelList();
if ( ptr.find(a_channel_name) ) { do_something; }

But, as this kind of request takes a while, I would like to let the main window having a chance to process other things while the list is downloaded from the server (like repainting, processing events...)

As far as I know, we can't instanciate QSocket in another thread than the main one.

How can I do that kind of thing ?

Many thanks in advance if you take a little time to give me ways to explore