Yes.
Hmm... I thought exec() moves the object into the thread. If it doesn't, it should be enough to move it inside run():
Qt Code:
void MyThread::run(){ moveToThread(this); exec(); }To copy to clipboard, switch view to plain text mode
Yes.
Hmm... I thought exec() moves the object into the thread. If it doesn't, it should be enough to move it inside run():
Qt Code:
void MyThread::run(){ moveToThread(this); exec(); }To copy to clipboard, switch view to plain text mode
Bookmarks