hi, i like to implement client and server model in qt. i ve done that, and now am gonna use multiple client. so am following threads.. i ve learned qthreads and used but got run time error . couldn’t found that.. here’s the code. in header file i declared.like
QT Code:

class mythread:public QThreads,public Widget
{
public:
void run();
}
and .cpp file i defined it as,

QT Code:

void mythread::run()
{
//my client code
exec();
}

mythread t;
t.start();
t.wait();

but i got sum error like debugger crashed and sometime program is not running. kindly tell me what i need to change here in the code. as am new to qt, kindly help me as soon as possible.

becos of error in QThread i plan to use pthread. as i ve already experience in linux so implemented pthread but it shows some syntax error couldn’t found tat too..

QT Code:

void *mythread(void*);
pthread_create(&threadid;,0,(void*)&mythread;,0);


but it shows invalid argument 3 in pthread. the same way i ve used it in linux, there works, here its not working.. kindly tell me how to use the pthread(tell me the syntax properly) and modify here to use…and also tell if i ve used pthread it may create any problem while executing. like in gcc i ve used -lpthread in run time like tat i need to add any library or it will work by default.. if we want to add any library kindly give me full explanation about pthread to use it in qt