Results 1 to 7 of 7

Thread: get initial row index of QListView after sorting?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: get initial row index of QListView after sorting?

    Why not just sort the QList as well?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Mar 2011
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Default Re: get initial row index of QListView after sorting?

    do you mean firtst sort QList and then just add the content to QListWidget without sorting? I don't find any of sort() functions included to QList class. Should I do it myself? I find QListWidget sorting capability good enough for my application except for the initial problem I posted.

Similar Threads

  1. Replies: 4
    Last Post: 2nd March 2011, 09:03
  2. Replies: 1
    Last Post: 12th January 2011, 06:52
  3. Sorting in QListView class
    By Yayati.Ekbote in forum Qt Programming
    Replies: 5
    Last Post: 14th April 2010, 12:26
  4. QListView sorting
    By fear in forum Qt Programming
    Replies: 14
    Last Post: 21st August 2007, 13:08
  5. How can I disable the QListView Sorting?
    By darpan in forum Qt Programming
    Replies: 3
    Last Post: 27th June 2006, 10:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.