I assume you mean the moveToThread, everything else is basic C++ just like creating on the heap.

Qt Code:
  1. file->moveToThread(this);
To copy to clipboard, switch view to plain text mode 

Cheers,
_