Hi,
Its my mistake. Sorry.

I create a class like this
Qt Code:
  1. class MyThread : public QThread
  2. {
  3.  
  4. protected:
  5. virtual void run(){
  6. while(true){
  7. qDebug()<<"Run";
  8. }
  9. }
  10.  
  11. };
To copy to clipboard, switch view to plain text mode 

and in .h file
Qt Code:
  1. QThread *mThread;
To copy to clipboard, switch view to plain text mode 

and give the command in my constructor like this

Qt Code:
  1. mThread = new QThread(this);
To copy to clipboard, switch view to plain text mode 


but the error is like this

Qt Code:
  1. .\Test.cpp(70) : error C2259: 'QThread' : cannot instantiate abstract class
  2. due to following members:
  3. 'void QThread::run(void)' : is abstract
  4. c:\qt\4.3.0\include\qtcore\qthread.h(87) : see declaration of 'QThread::run'
To copy to clipboard, switch view to plain text mode 


Please help me