zoom to the area selected by the rubber band

hello.
I have done a QRect rubber band and i want to do zoom to the area selected by the rubber band.
I use gluOrtho2D for a simple zoom in and zoom out.
Could you help me?
Thank you