I thnik you may stay out from Qatar for 6 Months .and there should be no restrctions to go any country or get residence during this period.

But not 100% Sure.....