State-owned Qatar Airways has agreed to sell its entire stake in Cathay Pacific Airways for about $897 million (HK$6.97 billion), marking a full exit from Hong Kong’s carrier after eight years.