I would like to create a QThread by just including "# include <QThread>" and ofcourse giving an statement as:
QThread* myThread;
myThread = new QThread();
This results in this error:
server.cpp: In member function 'void Server::newConnection()':
server.cpp:55: error: cannot allocate an object of abstract type 'QThread'
/usr/local/Trolltech/Qt-4.1.1/include/QtCore/qthread.h:38: note: because the following virtual functions are pure within 'QThread':
/usr/local/Trolltech/Qt-4.1.1/include/QtCore/qthread.h:86: note: virtual void QThread::run()
make: *** [server.o] Error 1
How can I create a QThread then ?
Bookmarks