If your visa is cancelling, that means you will get only NOC from your current sponsor, then you need to exit from Qatar ( You and family) and come back with new sponsor visa. You must give your old ID to the current sponsor or while exiting from the immigration.

Note - You needs to go through all the process as new resident to Qatar, including your family