title: Qt Creator -- how do I set the model of a QTreeView inside the Designer?
body: <p>I'm learning <a href="http://en.wikipedia.org/wiki/Qt_%28toolkit%29" rel="nofollow">Qt</a> independently, and this may seem like an easy question (because it is).  I primarily come from a <a href="http://en.wikipedia.org/wiki/Swing_%28Java%29" rel="nofollow">Swing</a> background, so the concepts are very similar.</p>
  
  <p>My question:</p>
  
  <p>I am using Qt Designer to create a QTreeView item in the UI Designer.  How do I do something as simple as setting the model of the TreeView? </p>
  
  <p>Usually I would do something like:</p>
  
  <pre><code>QTreeView *tree = new QTreeView();
  tree-&gt;setModel( &amp;myModel);
  </code></pre>
  
  <p>I don't even know how to get a reference to the QTreeView object that the UI Designer created.  Any direction will be appreciated!</p>