From the documentation I suppose that the QList::iterator
is not "permanent", while the QLinkedList::iterator
is in some cases.
For QList
Multiple iterators can be used on the same list. However, be aware
that any non-const function call performed on the QList will render
all existing iterators undefined. If you need to keep iterators over a
long period of time, we recommend that you use QLinkedList rather than
QList.
For QLinkedList
Multiple iterators can be used on the same list. If you add items to
the list, existing iterators will remain valid. If you remove items
from the list, iterators that point to the removed items will become
dangling iterators.
See QList::iterator and QLinkedList::iterator