naturalpsychic
24th January 2011, 03:42
hi folks,
i have got following code and i am having a little bit of problem
header
#include <QThread>
class Fthrclass: public Qthread
{
public:
Fthrclass();
virtual void run();
};
problem is if i get rid of ":public QThread" and "virtual void run" it builds properly otherwise it gives me error "expected class name before { token"
i have no idea whats happening here, as far as i can see syntax is correct
i m using QT4.7.1 and qtcreator (g++ for compiler) on linux
OH crap! i found error! it was QThread instead of Qthread in inheritance... :D thanx anyways guys, i specially registered to qtcentre.org to ask this question and found answer myself the very next time i looked at my code, lolz
i have got following code and i am having a little bit of problem
header
#include <QThread>
class Fthrclass: public Qthread
{
public:
Fthrclass();
virtual void run();
};
problem is if i get rid of ":public QThread" and "virtual void run" it builds properly otherwise it gives me error "expected class name before { token"
i have no idea whats happening here, as far as i can see syntax is correct
i m using QT4.7.1 and qtcreator (g++ for compiler) on linux
OH crap! i found error! it was QThread instead of Qthread in inheritance... :D thanx anyways guys, i specially registered to qtcentre.org to ask this question and found answer myself the very next time i looked at my code, lolz