Hi,
Its my mistake. Sorry.
I create a class like this
{
protected:
virtual void run(){
while(true){
qDebug()<<"Run";
}
}
};
class MyThread : public QThread
{
protected:
virtual void run(){
while(true){
qDebug()<<"Run";
}
}
};
To copy to clipboard, switch view to plain text mode
and in .h file
QThread *mThread;
To copy to clipboard, switch view to plain text mode
and give the command in my constructor like this
mThread = new QThread(this);
To copy to clipboard, switch view to plain text mode
but the error is like this
.\Test.cpp(70) : error C2259: 'QThread' : cannot instantiate abstract class
due to following members:
'void QThread::run(void)' : is abstract
c:\qt\4.3.0\include\qtcore\qthread.h(87) : see declaration of 'QThread::run'
.\Test.cpp(70) : error C2259: 'QThread' : cannot instantiate abstract class
due to following members:
'void QThread::run(void)' : is abstract
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
Bookmarks