some of my friends worked in qatar even less then 1 year, then found a better job, got a NOC letter from their sponsors, cancelled their Work Visa, came back to qatar right away (after spending 3-4 nice days in Dubai) and joined the new company. I suspect it also might depend on the nationality.. may be for some nationalities it's a bit harder than to other.. but this is a general procedure...