incapacitant
14th March 2006, 13:45
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 :
qRecap->removeRows(0, qRecap->rowCount(QModelIndex()), QModelIndex());
qRecap->clear();
qRecap is the model.
qRecap has no member removeRows or clear.
How can i remove all entries from the model ?
In QT4 there was a way to empty all rows.
None of the code below gives result :
qRecap->removeRows(0, qRecap->rowCount(QModelIndex()), QModelIndex());
qRecap->clear();
qRecap is the model.
qRecap has no member removeRows or clear.
How can i remove all entries from the model ?