You do realize that the WriteToProc() slot will be called from the context of the main thread and not the context of the worker thread, right?