Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
ConstIterator Class Reference

\inmodule QtCore \inherits QConstIterator More...

Collaboration diagram for ConstIterator:

Detailed Description

\inmodule QtCore \inherits QConstIterator

Since
6.11

QMetaSequence::Iterable::ConstIterator allows iteration over a container in a QVariant.

A QMetaSequence::Iterable::ConstIterator can only be created by a QMetaSequence::Iterable instance, and can be used in a way similar to other stl-style iterators.

QList<int> intList = {7, 11, 42};
// Can use C++11 range-for:
for (const QVariant &v : iterable) {
qDebug() << v;
}
// Can use iterators:
for ( ; it != end; ++it) {
qDebug() << *it;
}
}

The documentation for this class was generated from the following file: