[PyQt] Selecting the last added item in a QAbstractTableModel
AmFreak at web.de
AmFreak at web.de
Wed Sep 8 23:52:42 BST 2010
Hi,
i have a QAbstractTableModel in which i insert data (rows) with a button
that opens a dialog and calls the insertRow method after the dialog is
closed:
def insertRow (self, row, filesystem, parent = QModelIndex() ):
self.beginInsertRows(QModelIndex(), len(self.fList),
len(self.fList))
self.fList.append(filesystem)
self.endInsertRows()
now the new data is added to the tableview and the view is sorted. But
what bugs me is that the new row isn't selected (marked) - how can i do
this ?
Greetings
AmFreak
More information about the PyQt
mailing list