Use moveToThread rather than deriving from QThread.

Makes the code much simpler indeed.