On Dec 6, 2009, at 12:48 PM, ext Soumen banerjee wrote:

> In the files attached, mainwindow.cpp has the following line
> 
> connect(ptr,SIGNAL(setlabel(int)),this,SLOT(setLabel(int)));
> 
> where ptr is of type mythread* which is derived from QThread
> the application compiles without error but on running, quits with
> segfault. Omitting the connect line solves the problem but removes all
> the functionality. How do you connect these together?
> Regards
> Soumen

You don't give "ptr" a value before calling "connect". Moving "ptr=new 
mythread(this);" before the "connect" statement (or something similar) should 
do it for you.

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.zil...@nokia.com






_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to