Save it into QImage or QPixmap using appropriate methods from QGLWidget and then print as usual.