title: PyQt4 - convert list to QVector
body: <p>How can I derive a <code>QVector</code> from a python list?</p>
  
  <p>I tried</p>
  
  <pre><code>from PyQt4.QtCore import *  #... is QVector herein?
  [...]
  v=QVector()
  for l in list:
      v.append(l)
  </code></pre>
  
  <p>The key problem is, that I want to use a method that expects <code>QVector</code> as input where passing a simple python list causes an error. And furthermore <code>name 'QVector' is not defined</code>. Please refer to <a href="https://gis.stackexchange.com/questions/212252/unexpected-bevaviour-of-qgslinevectorlayerdirector-makegraph-when-passing-li">https://gis.stackexchange.com/questions/212252/unexpected-bevaviour-of-qgslinevectorlayerdirector-makegraph-when-passing-li</a> for details.</p>
  
  <p><strong>UPDATE</strong>
  <code>QtCore.PYQT_VERSION_STR</code> gives me <code>'4.10.2'</code>, so this shouldn't be a version issue.</p>