Use QThread as a member of main window class