please paste your implementation of
Qt Code:
  1. int rowCount(const QModelIndex &parent = QModelIndex()) const;
To copy to clipboard, switch view to plain text mode 
You should emit correct signal when you change(del or edit) the data in the model to notify the view.You could read the qt doc about Model / view programming.