出错的行: thread = new threadclass();
看了半天不知那里错了.....
错误提示:
back.cpp: In constructor ‘back::back()’:
back.cpp:35: error: expected type-specifier before ‘threadclass’
back.cpp:35: error: cannot convert ‘int*’ to ‘QThread*’ in assignment
back.cpp:35: error: expected ‘;’ before ‘threadclass’
make: *** [back.o] 错误 1
------解决方案--------------------
额。。想通过这么点东西判断挺难额。。。
------解决方案--------------------
语法有问题吧,应该这样声明:
QWidget *window = new QWidget;
------解决方案--------------------
threadclass *thread = new threadclass();