I\'m trying to use threads in Qt to delegate some work to a thread, but I can\'t get it to work. I have a class inheriting QMainWindow that have a member object that launch
You can only use moveToThread in case when
So your error message says you're violating the second case. You should call moveToThread from the thread that created the object.
And according to you
This object has the QMainwindow as parent.
So moveToThread will not work, again. You should remove the parent from m_poller object