title: How to create QList from std::vector
body: <p><a href="http://doc.qt.io/qt-5/qlist.html#fromStdList" rel="noreferrer"><code>QList::fromStdList</code></a> allows you to create <code>QList</code> from <code>std::list</code>. But how to create <code>QList</code> from <code>std::vector</code>?</p>
  
  <p>Of course, <strong>aside from manual looping</strong>:</p>
  
  <pre><code>QList&lt;T&gt; myList;
  myList.reserve(vector.size());
  for(size_t i = 0, l = vector.size(); i &lt; l; ++i)
      myList &lt;&lt; vector[i];
  </code></pre>