hello !

you would have to wait 2 years from point of departure to come back to qatar and obtain a work permit. You may be able to enter on visit still before the end of two years. In the eventuality you try to convert the visit to a work visa once here, they (immigration) will request you to provide the NOC letter from your previous sponsor to join your new company.

Good luck !