title: Fill a QScatterDataArray with a QVector from coordinates in a table
body: <p>I would like to fill a <a href="https://doc.qt.io/qt-5/qscatterdataproxy.html#QScatterDataArray-typedef" rel="nofollow noreferrer">QScatterDataArray</a> with some <a href="https://doc.qt.io/qt-5/qvector3d.html" rel="nofollow noreferrer">QVector3D</a>, which themselves get their data from an array. I know how to do it manually, but I don't know how to do it automatically. I guess you'll have to use a for loop, though, I don't see how. I also want to say that I never use QT, so the answer might seem obvious to you.</p>
  
  <p>Here is the code I would like to modify:</p>
  
  <pre><code>// "graph" is therefore my graph
  
  QScatter3DSeries *series = new QScatter3DSeries(graph);
  QScatterDataArray data;
  
  data &lt;&lt; QVector3D(50, 10, 0) &lt;&lt; QVector3D(5, 8, 9) &lt;&lt; QVector3D(0, 10, 15)
  &lt;&lt; QVector3D(30, 50, 02) &lt;&lt; QVector3D(15, 83, 7) &lt;&lt; QVector3D(04, 20, 45)
  &lt;&lt; QVector3D(40, 014, 10) &lt;&lt; QVector3D(35, 28, 21) &lt;&lt; QVector3D(04, 0, 15)
  &lt;&lt; QVector3D(70, 10, 27) &lt;&lt; QVector3D(15, 28, 47) &lt;&lt; QVector3D(062, 70, 45)
  &lt;&lt; QVector3D(50, 10, 0) &lt;&lt; QVector3D(5, 8, 17) &lt;&lt; QVector3D(031, 20, 35);
  
  series-&gt;dataProxy()-&gt;addItems(data);
  graph-&gt;addSeries(series);
  </code></pre>
  
  <p>Thanks :)</p>