[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QList
From:       Thiago Macieira <thiagom () wanadoo ! fr>
Date:       2003-07-07 15:09:36
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Johnny Andersson wrote:
>I have a question about QList. Is it possible to get an item from position x
>in the list without changing the current item to x? I want a non-mutating
>function to look at (not change) item x, but if I use at() it's mutating.

QPtrList doesn't offer that functionality. You should use iterators and a 
QValueList or QValueVector instead.

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom@mail.com           
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic