lemme summarize for you.
the typedef iterator is based on the abstract pattern
where the implementation is left blank
and for instance:
QList<QString>::iterator i = list.end();
the iterator takes on the QString type
do i r0ck 0r w0t??
An iterator is used to loop through a collection of same type objects
i think you could use an iterator in one of the other threads where i mentioned the questionaire example wrt the reflection pattern. where you would have to loop through a whole lot of widgets so correct me if i'm wrong could we do this for that case;
say myVariant was passed a list of the widgets on a form
QVariantList list = myVariant.toList();
QVariantList::Iterator it = list.begin();
while(it != list.end())
QVariant testV = QVariant(*it);
if (testv.typeName() == "QEditbox" -------------> heres where i get stuck Qvariant doesn't have types for any Qwidgets that i can see , even Qvariant::canConvert doesn't have qwidget types!!!