You just need to take your passport, your visa (not your RP), a picture, your original drivers license and go to the traffic department in Madina Khalifa. You'll need to pay QR180 (using a credit/debit card), pass the eye test and they'll give you the temporary license (provided your country is one of the accepted ones) immediately.