title: Qt - qcombobox with multiple columns
body: <p>I'm trying show QTableView in QComboBox.</p>
  
  <p>Example Department is table in my database.</p>
  
  <p>Query = </p>
  
  <blockquote>
    <p>SELECT Dep.Code,Dep.Name FROM Dep</p>
  </blockquote>
  
  <p>and I've tried this my code.</p>
  
  <pre><code>QSqlQueryModel* depModel = new QSqlQueryModel();
  depModel-&gt;setQuery("SELECT Dep.Code,Dep.Name FROM Dep");
  .
  .
  .
  QTableView* cboxTable = new QTableView(this);
  cboxTable-&gt;setModel(depModel);
  QComboBox *courseComboBox = new QComboBox();
  courseComboBox-&gt;setView(cboxTable);
  </code></pre>
  
  <p>but not work.Where is my problem ? I want see multiple columns.</p>