Re: [Interest] Set a timer for a different thread

2019-04-24 Thread Thiago Macieira
On Wednesday, 24 April 2019 14:11:09 PDT Tom Isaacson wrote: > I've got some legacy code where a timer is firing on the wrong thread. The > sequence is: 1. Thread instantiates MyClass. > 2. MyClass constructor calls QTimer::singleShot(60 * 1000, this, > &MyClass::OnTimer); 3. Move class to thread b

Re: [Interest] Set a timer for a different thread

2019-04-24 Thread Jérôme Godbout
timer for a different thread I've got some legacy code where a timer is firing on the wrong thread. The sequence is: 1. Thread instantiates MyClass. 2. MyClass constructor calls QTimer::singleShot(60 * 1000, this, &MyClass::OnTimer); 3. Move class to thread by calling MyClass.moveToThr

[Interest] Set a timer for a different thread

2019-04-24 Thread Tom Isaacson
I've got some legacy code where a timer is firing on the wrong thread. The sequence is: 1. Thread instantiates MyClass. 2. MyClass constructor calls QTimer::singleShot(60 * 1000, this, &MyClass::OnTimer); 3. Move class to thread by calling MyClass.moveToThread(); 4. OnTimer is called on the wrong