标题:【提问】多线程关于run的问题
作者:wjydlut
日期:2005-11-29 09:09
内容:
"paint.cpp: In function `int main(int, char**)':
paint.cpp:25: cannot declare variable `paint' to be of type `paint'
paint.cpp:25: because the following virtual functions are abstract:
/usr/lib/qt-3.1/include/qthread.h:83: virtual void QThread::run() "
我的程序出现的错误 ,那位知道怎么回事呀,帮帮忙呀!先谢了
#1 [不想重名 11-29 10:52]
你不能直接实用QThread类定义对象,必须继承它,并实现其run函数。
#2 [wjydlut 11-29 16:47]
谢谢!这个问题我已经解决了
#3 [XChinux 11-29 16:48]
说说你的解决方案
#4 [wjydlut 11-30 09:50]
是我在不该继承Qthread,的地方继承了它.
请问Qt里面怎么传递参数 ,我想把Qthread::run 里面 的参数传到一个窗口里显示 ,该怎么办?