Results 1 to 5 of 5

Thread: Sorting a QStringlist issue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Posts
    25
    Thanks
    9
    Thanked 1 Time in 1 Post

    Default Sorting a QStringlist issue

    I tried the following code,

    QStringList oStrlist;
    oStrlist << "A_1" << "A_2" << "A_3" << "A_10" << "A_11";
    oStrlist.sort();

    This gives me a result like
    A_1, A_10, A_11, A_2, A_3.

    I need A_10, A_11 to come only after A_2, A_3. Is there any way to do this.

  2. The following user says thank you to George Neil for this useful post:

    zeFree (3rd December 2013)

Similar Threads

  1. QStringList Sorting
    By QbelcorT in forum Qt Programming
    Replies: 19
    Last Post: 29th August 2011, 12:29
  2. QTable Sorting
    By mromey in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2009, 07:28
  3. QStringList
    By jaca in forum Qt Programming
    Replies: 5
    Last Post: 17th May 2008, 10:12
  4. QStringList in QObject::connect
    By DPinLV in forum Qt Programming
    Replies: 6
    Last Post: 6th September 2006, 17:01
  5. Cannot queue arguments of type 'QStringList'
    By vfernandez in forum Qt Programming
    Replies: 2
    Last Post: 19th April 2006, 20:48

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.