While I personally like the approach suggested by Ginsengelf due to having full control with a custom thread, it could also be possible to simply use QtConcurrent::run().

Cheers,
_