Its not very complicated, if you are on a local sponsor (individual or company) you need an exit permit to leave the country. A form to be filled and signed by sponsor, then endorsed my immigrations(MOI)

Family under your sponsorship does not require exits

You could also arrange with your sponsor a multiple exit permit, i think its QAR 500 a year

visit www.moi.gov.qa for some details