title: How to hide checkboxes in a QTableView using python?
body: <p>I'm quite new to python as well as to Qt. I would like to use the <code>QTableView</code> without checkboxes appearing in the tableview's cells, but as it seems they just appear there by default. As I've <a href="https://stackoverflow.com/questions/12197044/qt-qabstractmodel-remove-checkbox" title="found out">found out </a>so far, you just have to deactivate the <code>Qt.ItemIsUserCheckable</code> flag. But how am I supposed to do this? I tried to use the flags - function of the <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qabstractitemmodel.html" rel="nofollow noreferrer">QAbstractItemModel</a>l inside a <code>QAbstractTableModel</code> derived model class this way:</p>
  
  <pre><code>def flags(self,index):
          return(QtCore.Qt.ItemIsEnabled| QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsSelectable)
  </code></pre>
  
  <p>So, what I did is: just not returning the <code>Qt.ItemIsUserCheckable</code> flag. This works fine e.g. for the <code>Qt.ItemIsEditable</code> flag making a cell editable or not (when it is not returned) but doing this with the <code>ItemIsUserCheckable</code> flag has no effect on the checkboxes. So my question is: how can I get rid of the checkboxes using python? Please help!</p>