[Qt-interest] QThread event loop running in main thread?

K. Frank kfrank29.c at gmail.com
Wed Dec 29 01:33:12 CET 2010


Hello Thiago!

On Tue, Dec 28, 2010 at 4:25 PM, Thiago Macieira <thiago at kde.org> wrote:
> On Tuesday, 28 de December de 2010 13:03:08 Mihail Naydenov wrote:
>> > ...
>> I agree with "concept  violation", still, if you know what are you doing,
>> moveToThread(this) gives you
>> the simples possible framework. That was the argument all about.
>
> No.
>
> I called:
>  signals - concept violation
>  slots - probably an error
>  moveToThread(this) - forbidden
> ...
> moveToThread(this) is never right. It does more than what you think it does.

Thiago, could you elaborate on this?

What does "moveToThread (this)" do that is different than (or more
pernicious than) "moveToThread (someThreadOtherThanThis)"?

What more does it do than I probably think?

I thought I had a good understanding of the Qt threading model,
but according to my understanding, "moveToThread (this)" is
technically legitimate.  (Whether it's good design or Qt-idiomatic
would be a separate discussion.)  So, given your comments, I'm
now concerned that my understanding is incorrect.

Thanks for any additional explanation.


K. Frank



More information about the Qt-interest-old mailing list