Maybe reading some of the Qt threading examples and tutorials would help you.