Hello. I am a lawyer with over 15 years experience. I will try to help you with this. Were you marries in Britain and do you have any children. Do you plan to return to UK soon or are you intending to stay in Qatar.
UK Immigration website does not refer about staying in UK entire period of 2 years. Staying outside UK for job purposes with the spouse will be considered with its own merit.
I will be making decision to take the job back in UK or staying in Qatar based on your advice based on what will be easier for her to get the settlement.
Can she take the life in UK exam, English test and apply for settlement.