title: QTableView has unwanted checkboxes in every cell
body: <p>I'm just getting started with Qt programming, and I'm trying to make a simple tabular data layout using a <code>QTableView</code> control with a model class of my own creation inheriting from <code>QAbstractTableModel</code>. For some reason, my table view ends up looking like this:</p>
  
  <p><a href="https://i.stack.imgur.com/mwLZy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mwLZy.png" alt="alt text"></a><br>
  <sub>(source: <a href="http://users.nerdland.net/tyler/files/pics/qtableview_checkboxes.png" rel="nofollow noreferrer">nerdland.net</a>)</sub>  </p>
  
  <p>What in the heck are those things that look like checkboxes (but don't do anything when I click them) in every cell, and how do I make them go away? I haven't changed any of the <code>QTableView</code> properties except for the object's name.</p>
  
  <p>If it matters, my model code is dead simple:</p>
  
  <pre><code>MyTableModel::MyTableModel(QObject* parent)
    : QAbstractTableModel(parent)
  {
  }
  
  MyTableModel::~MyTableModel()
  {
  }
  
  int MyTableModel::rowCount(const QModelIndex&amp; parent) const
  {
    return 1000; 
  }
  
  int MyTableModel::columnCount(const QModelIndex&amp; parent) const
  {
    return 5;
  }
  
  QVariant MyTableModel::data(const QModelIndex&amp; index, int role) const
  {
    return "Foo";
  }
  </code></pre>
  
  <p>The dialog UI is built in Qt Designer, and inside the class for the dialog I attach the model to the view like this:</p>
  
  <pre><code>MyTableModel testModel = new MyTableModel(this);
  ui.testTable-&gt;setModel(testModel);
  </code></pre>
  
  <p>Other than that I perform no operations on <code>ui.testTable</code>.</p>
  
  <p>Using Qt 4.6.</p>