[Solved] Alphabetical Fast Selection
-
Hi all,
I want to make a listview with a lot of entries, sorted by name. For this I want on the right
side a fast selection A-Z to point to the first entry in the list starting with this character.
Its the same functionality which is common under ios for such list.
Does anyone know if there is something out of the box in qml for this? Seems like I don't
have the right searchtags for google.
thx,
patrik -
Look here:
https://github.com/ruedigergad/meepasswords/tree/master/qml/common
Just use the files "FastScroll.js" and "FastScroll.qml".
Should work out of the box.
Do not forget to add
section.property: alphabet
to your "ListView" component.
Than you can add fill the "ListView"-Model with something like this:
listview.model.append({alphabet: 'A', name: 'Anton'});