title: QAbstractTableModel strange rowCount
body: <p>I have an abstractTable model with a very odd problem.</p>
  
  <p>The rowCount method;</p>
  
  <pre><code>int ordersModel::rowCount(const QModelIndex &amp;) const
  {
      int i = oData-&gt;count();
      qDebug() &lt;&lt; "rowc=" &lt;&lt; i;
  
      return 711;
    //  return   oData-&gt;count();
  
  }
  </code></pre>
  
  <p>Works when I hard code the value (711 or something lower) but if I
  use return i; or return oData->count(); the table displays nothing. (qDebug() reports that the data has 711 entries.</p>
  
  <p>The headers appear correctly. I'm in Qt 5.4.1, Windows 7.</p>
  
  <p>Stumped!</p>