PDA

View Full Version : Is it safe to call QTimer::start() before QTimer::moveToThread()?



mattc
25th October 2012, 18:21
Hello,
is the following code safe?


timer->start(interval);
timer->moveToThread(other_thread);

I am afraid that calling moveToThread() after start() might be unsafe, even though it seems to work as expected (so far).

Thanks

wysota
25th October 2012, 19:47
It's ok, no worries.