woodtluk
7th August 2010, 12:24
Hi everybody,
I need a special list view that shows the items in alphabetical groups. See the attached images.
Indexed list on iPhone (middle picture) (http://developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/art/ui_tablestyleexamples.jpg)
Similar for Android (http://bp0.blogger.com/_hzaKggjtxDQ/R8t-cW3GXVI/AAAAAAAAAGE/_tvEA8mr0Ks/s1600-h/alphabet-list-test.png)
Any suggestions how I can achieve this?
I was thinking about inserting a special item after each group in the model. But this would not be a very nice design. I suppose it's better to subclass QListView. But I'm not shure if it's a good aproach and how to do that.
Cheers Luke
I need a special list view that shows the items in alphabetical groups. See the attached images.
Indexed list on iPhone (middle picture) (http://developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/art/ui_tablestyleexamples.jpg)
Similar for Android (http://bp0.blogger.com/_hzaKggjtxDQ/R8t-cW3GXVI/AAAAAAAAAGE/_tvEA8mr0Ks/s1600-h/alphabet-list-test.png)
Any suggestions how I can achieve this?
I was thinking about inserting a special item after each group in the model. But this would not be a very nice design. I suppose it's better to subclass QListView. But I'm not shure if it's a good aproach and how to do that.
Cheers Luke