No clear guideline from the authorities on this but the insurance companies state - one week from date of arrival into Qatar. Thereafter if u would need to convert your license (provided it is from a GCC state, UK, US etc) to a temporary license which would be valid for the period of the visa.

Thereafter if you get an RP then the temporary license will be converted into a permanent one.

The temporary license can be obtained from the traffic dept.