[Qt-qml] ListView header and footer behavior

2010-11-11 Thread Johannes P
Hi, I'm trying to build a listView with header and footer. When I enable SnapToItem, the header is not shown anymore. It is there, but because the list snaps to the first Item below the header, one can only flick downwards to see the header. This is probably not the correct behavior, since a

[Qt-qml] Sorting of ListView

2010-11-15 Thread Johannes P
Hi, currently I'm using an XmlListModel Element for my ListView. I would like to be able to sort the items in the list by name, date, etc..., while name date are roles of the model. What would be the best way to do this? Regards, Johannes ___ Qt-qml