title: Qt GraphicsView stretch scene to fit
body: <p>Ok, so I am using Qt and C++ as my environment.</p>
  
  <p>I draw out a <code>QGraphicsView</code> in my UI.</p>
  
  <p>I then create a scene and add lines to that scene.  I run through an array of 5000 points and draw lines connecting each point.</p>
  
  <pre><code>QGraphicsScene *scene = new QGraphicsScene();
  QPen pen2 = QPen(Qt::blue, 8.0);
  int j=1;
  for (int i=1; i&lt;5000; i++)
  {
      scene-&gt;addLine(xArray[i],yArray[i],xArray[j],yArray[j], pen2);
      j++;
  }
  </code></pre>
  
  <p>The problem is that the numbers I am grabbing are very small, e.g. 2.000e-12.  The numbers will consistently change based on the application.  How can I adjust my scene to stretch to fill in my <code>QGraphicsView</code>.  Now, all I see is a dot in the center of my view.  Am I making sense?</p>