当前位置: 代码迷 >> QT开发 >> qt编译遇到的有关问题,求解
  详细解决方案

qt编译遇到的有关问题,求解

热度:123   发布时间:2016-04-25 05:06:30.0
qt编译遇到的问题,求解!
出错的行: 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();
  相关解决方案