title: Manipulate QML Canvas from C++ in Qt5
body: <p>In my <strong>Qt5</strong> application I have some <em>C++</em> and some <em>QML</em> working in harmony (aka sending signals back and forth).</p>
  
  <p>At this point I want to implement a widget that shows a real-time updated visualization of a playing audio stream in forms of the actual waveform showing in my QML. So I wonder which alternatives ways exist to solve this? What is the easiest alternative to code and which alternative has the best performance?</p>
  
  <p>My naive ideas are:</p>
  
  <ul>
  <li>Create a Canvas in my QML and then draw directly to this canvas from C++</li>
  <li>Send actual samples as a buffer to QML and draw them in canvas from js</li>
  <li>Send actual samples as a buffer to QML and draw them in some other manner</li>
  <li>Write a custom C++ widget and somehow display that in QML</li>
  </ul>
  
  <p>PS: I already have access to the actual samples to generate the visualization from, however if you have a clever solution to this as well then I would be overjoyed!</p>
  
  <p>Thanks</p>