Results 1 to 3 of 3

Thread: sorting QList<float>

  1. #1
    Join Date
    Aug 2009
    Posts
    122
    Thanks
    74
    Qt products
    Qt4
    Platforms
    Windows

    Question sorting QList<float>

    Hi,

    What is the best way to sort QList<float> ?

    (unfortunately sort() is not a member of this class).

    Ideally I'd like to sort it the same way I could sort QStringList.

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: sorting QList<float>

    See qSort().

  3. #3
    Join Date
    Jan 2012
    Posts
    1

Similar Threads

  1. Sorting using qSort(), - if QList contains POINTERS
    By joseph in forum Qt Programming
    Replies: 13
    Last Post: 18th August 2013, 18:55
  2. Replies: 4
    Last Post: 18th May 2011, 17:59
  3. sorting static QList<MyClass> list with qSort
    By oruccim in forum Qt Programming
    Replies: 3
    Last Post: 15th December 2010, 16:13
  4. Replies: 4
    Last Post: 20th August 2010, 13:54
  5. Replies: 5
    Last Post: 18th December 2008, 13:58

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.