lento you have two choices
1) insist on being treated as an arrival until you reach the transfer desks.
2) go to one of the Transit security areas and let them guide you through security in the reverse direction.
This is described in the Wiki on
http://www.flyertalk.com/forum/qatar...embarking.html thread.