title: Draw a dashed and dotted bezier curve in QML
body: <p>I've seen there is an example implementation of <a href="http://doc.qt.digia.com/qt-5.1/qtquick/scenegraph-customgeometry.html" rel="nofollow">a Bezier curve in QML</a>, but I'm looking for a hint how to implement dashed or dotted bezier curve line. As far as I see, tha authors of Bezier curve example are using <code>QSGGeometryNode</code> to store inside <code>QSGGeometry</code> with a <code>QSGFlatColorMaterial</code> material applied on it. Then they simply create list of points and draw segments between them.</p>
  
  <p>Is it possible to write a <code>shader</code> and apply it to <code>QSGFlatColorMaterial</code> (to display line as <code>dashed</code>, <code>dotted</code>, etc)?</p>
  
  <p>Eventually, is it possible to store more than one <code>QSGGeometry</code> inside <code>QSGGeometryNode</code>?  </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I would like to implement this in "pure <code>QtQuick</code>" - not in "old" interfaces (like <code>QPainter etc</code>) - because I do not want to use something, which switches context (openGL and CPU). I prefer the solution with custom shader (if is it doable) - because I'll have more possibilities in implementing custom look and feel (dashed, doted, colored, maybe animated etc).</p>
  
  <p>If it is not possible, I'll use <code>QPainter</code>.</p>