[Interest] BUG? QTimer in QThread

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue May 13 14:16:44 CEST 2014


On Tue, May 13, 2014 at 5:33 PM, Filip Piechocki <fpiechocki at gmail.com> wrote:
> I would like to mention, that in the first email the thread is never started
> and without starting the thread I would not expect much to happen in this
> thread :)

I was about to say the same! :)

-mandeep


>
> BR,
> Filip Piechocki
>
>
> On Tue, May 13, 2014 at 2:00 PM, Mandeep Sandhu
> <mandeepsandhu.chd at gmail.com> wrote:
>>
>> > Thanks Mandeep, the problem was caused by the timer starting in the
>> > constructor and then moved by moveToThread, as André pointed out. I
>> > don't
>> > really understand why is it so, but well, it works :)
>>
>> I'm glad it worked for you, although the example I sent you starts the
>> timer in the c'tor only (and later moveTothread is called) and still
>> works. Could it be a Qt-on-Mac issue (maybe you can compile my example
>> on your setup and test)?
>>
>> -mandeep
>>
>> >
>> >
>> > Thanks!
>> >
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
>



More information about the Interest mailing list