Getting the first n elements of a List
I am implementing a list view with a more button in QML.
The list and button will look like this
"a b c d e moreButton"
. ( Where a b c d and e are elements of a string) and my list will have more than 5 elements. After clicking the more button I need to get the next 5 elements from the list . Say
"f g h i j " and so on it should continue till all the elements in the list are displayed. My question is how can I get the first 5 , 2nd 5 and so on elements from the list ?
Any help is appreciated.