Subletting is actually Legal in Qatar, provided it is done officialy with a contract and if it is mentioned that the landlord will live in the property than that is fine too.