As I understand it you can leave Qatar and return without any problem as long as your RP is still valid and you are still employed in Qatar. The same should apply to your family and to those who are under their husband's sponsorship.

I think this new rule only applies to people who have left their jobs in Qatar, but who have had an RP issued to them within the last two years, regardless of whether their RP has been cancelled or not.