How about simply calling QGLWidget::renderPixmap() instead?