[Qt-interest] QThread Problem
alexander golks
alex at golks.de
Sat Feb 13 18:14:23 CET 2010
just call
thread->start();
what will result in execution of run() and in your case the display() method.
your second call to
thread->run();
starts the display() method again.
thus both threads will show "Sub thread is running" until end of universe...
alex
btw: you should mail text, not html content to this list
--
/*
* panic ("No CPUs found. System halted.\n");
* linux-2.4.3/arch/parisc/kernel/setup.c
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100213/7794581e/attachment.bin
More information about the Qt-interest-old
mailing list