try to check first the rules in doha..if you leave doha for more than a 6 months or as per government policy automatic your visa will be cancelled directly....related to that case in uae...if the expat will leave the country for more than 6 months automatic the the residence permit or working visa will be null and void then as well yo will be banned automatically...try to check first the law in qatar regarding the visa....