Re: [Interest] QML Gridview cell's

2014-03-02 Thread Damian Ivanov
Hi Filip, Thanks for your response. i guess I will do so - a second listed, which is filtered. 2014-03-03 8:33 GMT+01:00 Filip Piechocki : > Hi, > I suggest you implement filtering proxy model which will be between GridView > and you model. Then you should use this filtering model in the GridView

Re: [Interest] QML Gridview cell's

2014-03-02 Thread Filip Piechocki
Hi, I suggest you implement filtering proxy model which will be between GridView and you model. Then you should use this filtering model in the GridView. To create your filtering model subclass QSortFilterProxyModel and reimplement filterAcceptsRow(). You can either prepare a new QML type (so you c

[Interest] QML Gridview cell's

2014-03-02 Thread Damian Ivanov
Hi all, I have a GridView which gets the model from a QStringlist model from c++ GridView{... model:myPlugin.stringList;...} Now this QStringList may contain by nature duplicates. Is there a way I can hide them in the GridView? I tried in the delegate to set the item visible=false, this hides the