PDA

View Full Version : Substiture for Q3PtrList in Qt4.2.2



joseph
11th September 2007, 12:21
Hi guys,


My application is chemical drawing canvas.
Which is developed in Qt3.3.x.

I have been porting this application to Qt4.2.2.
and all over my application i am using Q3PtrList , i want to change it to QList.

The functionality i used in Q3PtrList is ...
=> setAutoDelete( true or false ). // hadling memory
=> sorting list items .
=> delete a particular item in Q3PtrList

Can i get the same functionality in QList in Qt4.2.2.
Please tell me any substiute in Qt4 better than QList .


thanks in advance

marcel
11th September 2007, 12:33
See http://doc.trolltech.com/4.3/porting4.html#qptrlist-t.

Regards