[Qt-interest] Best container for QObjects in 3.3 considering future port to 4.x
Srdjan Todorovic
todorovic.s at googlemail.com
Fri Jan 23 12:47:49 CET 2009
Hi,
2009/1/23 Chris <chris1.noreply at googlemail.com>:
> I'm working on a legacy application based on QT3.3 but I'm considering
> porting to QT4 in the future so I'm trying to follow the guidelines in
> the porting document. I need to handle a collection of pointers to
> QObjects but I can't figure out what type of collection to use.
> Any ideas on how I can best create a container for pointers to
> QObjects, bearing in mind I want to migrate to Qt4 in future?
If class Foo inherits QObject...
then QPtrList<Foo> (qt3) -> QList<Foo *> (qt4) should work.
Hope that helps,
Srdjan
More information about the Qt-interest-old
mailing list