[Qt-interest] QThreads not running in parallel
Thiago Macieira
thiago at kde.org
Tue Oct 11 15:41:48 CEST 2011
On Tuesday, 11 de October de 2011 13:45:49 Jothy wrote:
> If I uncomment this->exec() it shows all the thread in the task manager.
> But it doesn't execute the code!
>
> i tried
> thread->start();
> thread->wait();
> thread->quit();
>
> But the problem is not solved!
I think you're barking at the wrong tree. The threads aren't your problem.
Note what you said about uncommenting exec(): if you do that, then you see all
threads. So the threads *are* being executed.
I think the most important sentence in your emails so far is:
> But it doesn't execute the code!
Either you're right and the code isn't being executed -- which indicates a
problem elsewhere -- or the code is executed and you're not testing correctly
-- which also indicates a problem elsewhere.
Since the problem is likely not where you think it is, please send us a
*complete* testcase, compilable and showing the problem. Please restrict to Qt
code only (remove VTK dependencies) and try to make it as small as possible.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111011/5a20bc0f/attachment.bin
More information about the Qt-interest-old
mailing list