Hey,

I was wondering if someone could show some example coding for using QThread within a class of another. I currently have written has the following functions:

Server(void);
lookforconnection();
read();
disconnect();

I am having problems with when I click on a button which loops on lookforconnection() as it completely freezes the form but is running in the background. I would like to thread that function so that it just loops in the background and looks for connections.

Thanks,
Strateng