首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > QT开发 >

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

2012-03-13 
qt编译遇到的问题,求解!出错的行:thread new threadclass()看了半天不知那里错了.....错误提示:back.cp

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();

热点排行