As far as I can remember, when i'm still in family visit visa under my wife sponsor, In my case, i already extend my family visa up to 6 months.

When I need to go outside Qatar,I just took the return visa and exit permit. Now, the validity of your visit visa whether you extend or not will be the same, so you have to come back before it expired.

Hope it helps.