Leaving Qatar means leaving your job which will normally lead to cancellation of your RP. If your RP is cancelled the RP of you dependants will automatically get cancelled and they will not be able to stay. If you can leave without cancelling your RP (which I don't think will be possible) they can stay.