you can come back to qatar if your old company gave noc,
just exit from qatar, and return back on new visa.