[Qt-interest] [[Fwd: Re: QThread::run() running in wrong thread]]

Thiago Macieira thiago at kde.org
Sun May 23 23:49:06 CEST 2010


Em Domingo 23. Maio 2010, às 18.22.39, Ove Fagerheim escreveu:
> Sorry 'bout that, you're right of course. I took one shortcut to many.
> 
> I have edited the code below to more accurately mirror the program. Also
> added the error message received when trying to move object back to main
> thread.
[snip]
> I can't help you. Your code doesn't compile (use of "this" in main).

When I asked for code that compiled, it wasn't just to be annoying. Yes, I can 
fix the error of having a "this" in main.

My point was that your example wasn't representative of the problem you're 
facing. So please send a small, self-contained, compilable example that shows 
the error.

In the example that you sent, after correcting the mistakes, I came up with 
the attached code. It doesn't produce any warnings when run.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 1181 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100523/08b9f1f2/attachment.bin 
-------------- 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/20100523/08b9f1f2/attachment-0001.bin 


More information about the Qt-interest-old mailing list