title: QML model inside model is undefined
body: <p>I have a <code>QAbstractListModel</code> called <code>SerialPortList</code> which represents a list of <code>SerialPort</code>s. Each <code>SerialPort</code> has a <code>QList&lt;int&gt; supportedBaudRates</code> property. The <code>SerialPortList</code> model's <code>display</code> role is simply <code>QVariant::fromValue(mSerialPorts[i])</code>, i.e. a <code>SerialPort</code> instance.</p>
  
  <p>I display my list model in a <code>Repeater</code> like this (highly simplified):</p>
  
  <pre><code>SerialPortList {
      id: ports
  }
  
  Column {
      Repeater {
          id: portList
          // ...
          model: ports
          Text { text: model.display.portName }
          ComboBox {
              model: model.display.supportedBaudRates
              // ...
          }
      }
  }
  </code></pre>
  
  <p>That is, a list of the serial ports name, and then a combo box with its supported baud rates.</p>
  
  <p>The weird thing is, although the text is displayed fine, apparently for the combo box <code>model.display</code> is undefined. If I replace the combo box with this:</p>
  
  <pre><code>            Text {
                  text: model.display.supportedBaudRates.join(" ")
              }
  </code></pre>
  
  <p>then it produces the result you'd expect!</p>
  
  <p>What is going on here? I can only assume that <code>model</code> is redefined inside the <code>ComboBox</code> so it thinks it is referring to itself, but I've tried all kinds of id references like <code>portList.model.display.supportedBaudRates</code> that I can think of and none of them work.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Kakadu pointed out that you can't use a <code>QList&lt;int&gt;</code> as a model. Kind of annoying, but I've changed it to <code>QStringList</code> which you apparently can use. Sadly the error remains the same.</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I changed the <code>model:</code> in the <code>ComboBox</code> to <code>model: { console.log("model: " + model); }</code> and it prints <code>1</code>, which makes me sure that <code>model</code> refers to itself.</p>