QList::iterator Class | Qt Core | Qt 6.10.1
Description: Provides an STL-style non-const iterator for QList and QStack.

- Qt 6.10
- Qt Core
- C++ Classes
- iterator
- Qt 6.10.1 Reference Documentation

# QList::iterator Class

class QList::iterator

Provides an STL-style non-const iterator for QList and QStack. More...

## Detailed Description

QList provides both STL-style iterators and Java-style iterators.

Warning: Iterators on implicitly shared containers do not work exactly like STL-iterators. You should avoid copying a container while iterators are active on that container. For more information, read Implicit sharing iterator problem.

Warning: Iterators are invalidated when QList is modified. Consider that all iterators are invalidated by default. Exceptions to this rule are explicitly documented.

See also QList::begin(), QList::end(), QList::const_iterator, and QMutableListIterator.