QMapIterator ( const QMap<Key, T> & map ) |
|
bool
|
findNext
( const T & value )
|
bool
|
findPrevious
( const T & value )
|
bool
|
hasNext
() const
|
bool
|
hasPrevious
() const
|
const Key &
|
key
() const
|
Item
|
next
()
|
Item
|
peekNext
() const
|
Item
|
peekPrevious
() const
|
Item
|
previous
()
|
void
|
toBack
()
|
void
|
toFront
()
|
const T &
|
value
() const
|
QMapIterator &
|
operator=
( const QMap<Key, T> & map )
|
QMap<int, QWidget *> map;
...
QMapIterator<int, QWidget *> i(map);
while (i.hasNext()) {
i.next();
qDebug() << i.key() << ": " << i.value();
}
QMapIterator<int, QWidget *> i(map);
i.toBack();
while (i.hasPrevious()) {
i.previous();
qDebug() << i.key() << ": " << i.value();
}
QMapIterator<int, QWidget *> i(map);
while (i.findNext(widget)) {
qDebug() << "Found widget " << widget << " under key "
<< i.key();
}