If you are in transit, then no you do not need a visa as you do not need to leave the airport at all. ... Those who arrive at the airport in Doha, who will be in Qatar for less than 24 hours & with an onward air ticket need not be confined to the airport and are provided with a transit visa upon arrival.