From kde-devel Mon Jul 07 15:09:36 2003 From: Thiago Macieira Date: Mon, 07 Jul 2003 15:09:36 +0000 To: kde-devel Subject: Re: QList X-MARC-Message: https://marc.info/?l=kde-devel&m=105759070611507 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============19196195855039466==" --===============19196195855039466== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_x0YC/az06aigUPq"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_x0YC/az06aigUPq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=20 QValueList or QValueVector instead. =2D-=20 Thiago Macieira - Registered Linux user #65028 thiagom@mail.com =20 ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --Boundary-02=_x0YC/az06aigUPq Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/CY0wM/XwBW70U1gRAkdwAJsF4XQN51zNbYug/0f295lFxSedKwCfaw56 aejnNy0o1ys6e1d6WcXdTOU= =m7MA -----END PGP SIGNATURE----- --Boundary-02=_x0YC/az06aigUPq-- --===============19196195855039466== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============19196195855039466==--