[SOLVED] beginInsertRows inside insertRow method?
-
wrote on 20 Jun 2013, 02:00 last edited by
Hello,
Is it necessary to call beginInsertRows method when implementing this method???
@QAbstractItemModel::insertRow( int row, const QModelIndex & parent = QModelIndex() )@
If it's not the case, why is it necessary for this one???
@QAbstractItemModel::insertRows( int row, int count, const QModelIndex & parent = QModelIndex() )@Regards.
-
wrote on 20 Jun 2013, 03:46 last edited by
Function insertRow() is not virtual and not designed to reimplemented. The insertRow() function is implemented in terms of the virtual insertRows(). Get insertRows() right in your subclass and insertRow() follows automatically.
-
wrote on 28 Jun 2013, 18:59 last edited by
Thanks, I didn't realize that It wasn't a virtual method.