title: QT4 QstringListModel in QListView
body: <p>This is my first QT question - I'm generally a C# programmer so forgive me for asking a stupid question for which I'm sure there's a very simple answer, which I just can't seem to find:</p>
  
  <p>I want to add items to a list, for the moment let's say they're strings.
  I have a QListView: <code>UI-&gt;listView</code>, a QStringList, and a QStringListModel:</p>
  
  <pre><code>stringList = new QStringList();
  stringList-&gt;append("ABC");
  stringList-&gt;append("123");
  
  listModel = new QStringListModel(*stringList, NULL);
  ui-&gt;listView-&gt;setModel(listModel);
  
  stringList-&gt;append("xyz");
  </code></pre>
  
  <p>This example compiles and disaplys "ABC" and "123" in my list, but not "xyz". Why not? Do I need to repaint the listView somehow? Have I done something wrong with the NULL?</p>
  
  <p>Thanks.</p>