table = QtGui.QTableView()
table.setSelectionModel(QtGui.QItemSelectionModel.Rows)
returns a TypeError: QTableView.setSelectionModel(QItemSelectionModel): argument 1 has une error.
xpected type 'SelectionFlag'
What is the right way to set the selection model for the QTableView widget?
If you want to change what gets selected when you activate a cell, you have to use: