There is a form in www.moi gov.com.qa where in your new sponsor will fill the entire details of hiring you and along with it attached the new company Computer ID get it signed from the new company and submit it to your old company for signature as well.

Once done collect Computer ID card from the old company and get it attested from immigration and its done.

Rest will done by your new sponsor