title: Use a model as a source for a QMenu
body: <p>I created a model which list the existing configurations (let's say it lists "files", as this doesn't really matter here). So far, it works well when attached to a <code>QListView</code>.</p>
  
  <p>Example:</p>
  
  <pre><code>--- ListView ---
  - file #1      -
  - file #2      -
  - file #3      -
  - file #4      -
  ----------------
  </code></pre>
  
  <p>Is it possible to use the same model for a dynamically updated <code>QMenu</code> ?</p>
  
  <p>Something like:</p>
  
  <pre><code>Menu
  -&gt; Submenu #1
  -&gt; Submenu #2
  -&gt; File-submenu
    -&gt; file #1
    -&gt; file #2
    -&gt; file #3
    -&gt; file #4
  -&gt; Submenu #3
  </code></pre>
  
  <p>In short: is there any way to create a list of dynamicaly updated <code>QAction</code>s (grouped into the same <code>QMenu</code>) depending on a <em>model</em> (derived from <code>QAbstractListModel</code>) ?</p>