title: QTableView added in designer: not showing data
body: <p>I have found example how to use <code>QTableView</code>:
  <a href="http://doc.trolltech.com/4.5/sql-querymodel.html" rel="nofollow">http://doc.trolltech.com/4.5/sql-querymodel.html</a>
  It works fine. Data is shown in <code>QTableView</code>.</p>
  
  <p>But <code>QTableView</code> in this example is created dynamically in <code>main.cpp</code> file. 
  In my application I have main form and I added <code>QTableView</code> in designer. I try to populate this <code>QTableView</code> in constructor but without result:</p>
  
  <pre><code>MainApplication::MainApplication(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainApplication)
  {
      ui-&gt;setupUi(this);
  
  
      QMap&lt;QString, double&gt; currencyMap;
          currencyMap.insert("AUD", 1.3259);
          currencyMap.insert("CHF", 1.2970);
          currencyMap.insert("CZK", 24.510);
  
  
          CurrencyModel currencyModel;
          currencyModel.setCurrencyMap(currencyMap);
  
        ui-&gt;tableView_currencies-&gt;setModel(&amp;currencyModel);
        ui-&gt;tableView_currencies-&gt;setAlternatingRowColors(true);
  
        ui-&gt;tableView_currencies-&gt;setWindowTitle(QObject::tr("Currencies"));
        ui-&gt;tableView_currencies-&gt;show();
  
  }
  </code></pre>
  
  <p><code>QTableView</code> is showing on main form empty, only columns and rows headers are visible. And data is not shown.</p>
  
  <p>Does anybody know of a site with examples where components like <code>QTableView</code>, <code>QListView</code> are added in designer? In trolltech (nokia) tutorials all components are created dynamically.</p>