Results 1 to 4 of 4

Thread: Comparison of each element in two different QStringList !!

  1. #1
    Join Date
    Jan 2016
    Posts
    22
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Comparison of each element in two different QStringList !!

    Hello Everyone,

    I have two stringlist a and b.... Now I want compare the elements of a with elements of b and it should give the different value from b. how can I get the different value only from b stringlist.


    Thank you

  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: Comparison of each element in two different QStringList !!

    Let me try to rephrase that: you want to get a list that has all elements of b which are not also in a?
    Does the order of elements in the result list need to be the same as in b?

    Cheers,
    _

  3. #3
    Join Date
    Sep 2015
    Posts
    50
    Thanks
    8
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Comparison of each element in two different QStringList !!


  4. #4
    Join Date
    Jan 2016
    Posts
    22
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Comparison of each element in two different QStringList !!

    I got the answer Thank you all

Similar Threads

  1. Replies: 9
    Last Post: 23rd April 2012, 13:53
  2. how to get common element from a group of QStringList?
    By aurora in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2012, 07:54
  3. QByteArray comparison
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 29th September 2011, 10:02
  4. QList/QStringList comparison question
    By di_zou in forum Newbie
    Replies: 5
    Last Post: 28th October 2009, 14:35
  5. Replies: 7
    Last Post: 2nd June 2006, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.