So it would be something like:
thread->start();
thread->moveToThread(thread);
?
So it would be something like:
thread->start();
thread->moveToThread(thread);
?
Yes, exactly like that. Just make sure the thread has no parent or it will not work. You can only move a parentless object.
TheGrimace (19th October 2007)
I just tried it and it worked like a charmNo more gui freezing
Thank You!
Another solution is to simply pass Qt::DirectConnection as connection type, but you have create all QObjects in run().
Bookmarks