How to filter first row of the model
-
Two solution for that :
You could hide the first row in your delegate, with something likevisible: model.index !== 0.
Or you could really filter it with a proxy model.I've written a library to accomplish this : https://github.com/oKcerG/SortFilterProxyModel/
You could use it this way :
import SortFilterProxyModel 0.2 // ... SortFilterProxyModel { id: proxyModel sourceModel: myModel filters: IndexFilter { minimumIndex: 1 } // show elements from index 1 and up } ListView { model: proxyModel // ... }