[Interest] BUG? QTimer in QThread

Sensei senseiwa at gmail.com
Tue May 13 13:56:35 CEST 2014


On 13/05/14 13:48, Mandeep Sandhu wrote:
> Without seeing the full code I can't comment on what the problem might be.
>
> However I quickly wrote a small test app which essentially does
> whatever you've mentioned. It works fine on my Ubuntu setup with both
> Qt5 (5.2.0) and Qt4 (4.8.6).
>
> Have a look at the code and see if there's anything different.
>
> HTH,
> -mandeep


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 :)


Thanks!




More information about the Interest mailing list