To buy a car in Qatar as an expat, you need to have a residence permit and a letter from your sponsor approving your purchase of a car and that would be adreesed to the traffic department.

If you provide these to the car dealer they would be able to register the car in your name.

Hope this helps