Results 1 to 4 of 4

Thread: QStringList or QList , which is faster

  1. #1
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QStringList or QList , which is faster

    hi , i am using qt4.5 in debian
    im using QStringList for storing and retreiving strings.

    i want to know which is faster , QList or QStringList

    QStringlist itself inherited from QList.

    so Using qlist (instead of qstringlist) will be faster??

    pls guide me

    Bala

  2. #2
    Join Date
    Mar 2008
    Location
    France
    Posts
    149
    Thanks
    2
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QStringList or QList , which is faster


  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QStringList or QList , which is faster

    Quote Originally Posted by BalaQT View Post
    so Using qlist (instead of qstringlist) will be faster??
    Why would it be faster if it shares almost 100% of the code with QStringList? QStringList just has some additional methods which make operating on strings easier.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QStringList or QList , which is faster

    Thnks wysota/ toutarrive,
    QList <QString> = QStringList
    im using only basic functions on string like addto list, read from index only.
    so i thought of using qlist<QString> rather than QStringList.

    but more or less QStringList=QList <QString>
    Thnks
    Bala

Similar Threads

  1. QList/QStringList comparison question
    By di_zou in forum Newbie
    Replies: 5
    Last Post: 28th October 2009, 14:35
  2. Faster code possible?
    By ShaChris23 in forum General Programming
    Replies: 1
    Last Post: 28th May 2008, 07:35
  3. replace string in QList<QStringList>
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 7th March 2008, 17:40
  4. Casting QStringList to QList<QVariant>
    By Valheru in forum Newbie
    Replies: 3
    Last Post: 5th October 2006, 22:24
  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.