Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Alphabetical Fast Selection

[Solved] Alphabetical Fast Selection

Scheduled Pinned Locked Moved QML and Qt Quick
listviewselectionalphabetical
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    patrikd
    wrote on 18 Aug 2015, 09:02 last edited by patrikd
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sk2212
      wrote on 18 Aug 2015, 15:45 last edited by
      #2

      @patrikd

      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'});
      
      P 1 Reply Last reply 18 Aug 2015, 16:13
      1
      • S sk2212
        18 Aug 2015, 15:45

        @patrikd

        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'});
        
        P Offline
        P Offline
        patrikd
        wrote on 18 Aug 2015, 16:13 last edited by
        #3

        @sk2212
        cool, thx!

        1 Reply Last reply
        0

        2/3

        18 Aug 2015, 15:45

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved