title: Rendering a QGraphicsScene using OpenGL in Qt
body: <p>I'm trying to save a QGraphicsScene with OpenGL as an image (png or jpeg), but I don't want the image to depend on the current view (zoom). That's why I'm not using grabFrameBuffer but I use render() instead :</p>
  
  <pre><code>QImage imgToSave(1024,768,QImage::Format_ARGB32_Premultiplied);
  // fill the image
  // and define rectbuffer(), the QRect() containing what I want to save
  QPainter painter(&amp;imgToSave);
  m_scene = new QGraphicsScene;
  // fill the Scene
  m_scene-&gt;render(&amp;painter,imgToSave.rect(),rectbuffer());
  </code></pre>
  
  <p>It does work. My question is: is it using OpenGL capabilities or not?
  If not, how to do so?</p>
  
  <p>n.b. : i am using a QGLWidget as a Viewport for my GraphicsView. And the display using OpenGL is working. My concerns are about the image saving.</p>