QML GridView with sections
-
Good day
I need a qml gridview element that has property like listview's "section ":http://doc.qt.nokia.com/4.7-snapshot/qml-listview.html#section.property-prop where I can visually seperate items to different parts.
any suggestions are most welcomed
Thanks!
-
Hi,
I have the same goal, did you manage to do that? Anyone could give me any idea?
Thanks!
-
@Diego-Donate AFAIK there is no way to do such in
GridView
unless you create it on your own.
But what I'm trying to understand is how does this functionality makes sense inGridView
? How would you group the items atleast visually? -
@p3c0 I have a collection of received files, and I would like to show them in a grid, but with headers displaying the date. I mean, a header "Today", and below a grid of the files received today,; another header "Yesterday", and below the files received yesterday... I hope I am explaining... Thanks
-
@Diego-Donate I think you can achieve this using
ListView
+GridView
-
@p3c0 Thanks, I was thinking something like that. A ListView with sections (the date for the headers), and a GridView in every element. But I am confused about how to manage the model(s) to get the elements...
-
@Diego-Donate The
ListView
's model will hold a list of models that you can return. These models can be a simple QStringListModel or for a more complex you can subclass QAbstractItemModel.