Sorry, but there is a law in Qatar, which has to be implied. Only local Qatari's can resign and find work immediately. Other people and foreigners have to stay out of the country for at least an year, and then try to come back. This is only if the company does not provide an NOC upon request.