Hello, I made Qtopia GUI application. It runs OK. It uses various Qt classes like QTimer, QDateTime etc. But when I try to include QThread object the compilation fails with: In file included from ikh_main_form_imp.cpp:1: ./ikh_main_form_imp.h:36: error: 'QThread' does not name a type In the implementaion header I add: #include <qthread.h> //no complains from compiler about this file QThread rxThread; //but when added this line compilation fails.
compile problem when QThread used
In qte 2.2.0 is no thread support. Take a look in qthread.h: #if defined(QT_THREAD_SUPPORT) it's not defined. If you need something like a thread use QTimer or fork. For many short jobs like polling a input device QTimer is a good choice, for a more time consuming task i would prefere fork. skip