title: QStandardItemModel & Qtableview
body: <p>I am new to qt i am using QStandardItemModel inside QTtableview.</p>
  
  <p>Please suggest, </p>
  
  <ol>
  <li>How to change the row &amp; column header names. AT present it is showing 1,2,3,4</li>
  <li>How to make QStandardItemModel  occupy full Qtableview. At present it is showing at top left corner.</li>
  </ol>
  
  <p><br></p>
  
  <pre><code>MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  
      model= new QStandardItemModel(4, 4);
      for (int row = 0; row &lt; 4; ++row) {
          for (int column = 0; column &lt; 4; ++column) {
              QStandardItem *item = new QStandardItem(QString("row %0, column %1").arg(row).arg(column));
              model-&gt;setItem(row, column, item);
          }
      }
  
      ui-&gt;tableView-&gt;setModel(model);
  
  }
  </code></pre>