I have a model called "model" attached to a TreView called "treeView.
In QT4 there was a way to empty all rows.

None of the code below gives result :
Qt Code:
  1. qRecap->removeRows(0, qRecap->rowCount(QModelIndex()), QModelIndex());
  2. qRecap->clear();
To copy to clipboard, switch view to plain text mode 


qRecap is the model.
qRecap has no member removeRows or clear.

How can i remove all entries from the model ?