One can hold only one valid Work visa for GCC countries. Hence, you need to cancel Visa for Qatar to get one stamped for Dubai.
Free Visa is illegal, never fall for that trap.