Results 1 to 2 of 2

Thread: how to find 5 biggest element from qvector

  1. #1
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default how to find 5 biggest element from qvector

    I have a vector there are lots of data saved.
    i want to find indexes of 5 biggest element from qvector.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to find 5 biggest element from qvector

    E.g. sort in desending order and then take the first five elements

    Cheers,
    _

Similar Threads

  1. Replies: 9
    Last Post: 23rd April 2012, 14:53
  2. sort a Qvector based on another Qvector
    By OzQTNoob in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2012, 07:39
  3. Replies: 5
    Last Post: 3rd September 2011, 00:11
  4. Replies: 6
    Last Post: 15th June 2011, 09:29
  5. casting qvector element
    By rivci in forum Newbie
    Replies: 1
    Last Post: 4th April 2011, 14: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.