[kde-edu]: no more QPtrLists!

Albert Astals Cid aacid at kde.org
Tue May 31 23:25:24 CEST 2005

Well, there is Q3PtrList, but that should no be "abused", there is QList, that 
is QValueList replacement, you can use a QList<foo*> to hold pointers to 
structures. It is similar but not the same as does not have a integrated 
iterator etc.

Feel free to ask more questions, but if you have a look at Qt4 assistant 
"Porting from Qt 3 to Qt 4" the QPtrList<T> section is quite comprohensive.


A Dimarts 31 Maig 2005 23:05, Jason Harris va escriure:
> Hello,
> The word on the net is, we can't use QPtrList's in kde4 code.
> % cd ~/kde/kdesvn/kdeedu/kstars/kstars
> % grep QPtrList *.h *.cpp tools/*.h tools/*.cpp | wc -l
> 97
> Ouch.  So, I'm supposed to use QValueLists instead; is that right?  Are
> they essentially a "drop in" replacement (other than the fact that they
> contain refs rather than pointers)?
> Jason

Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 

More information about the kde-edu mailing list