#include
#include
int main() {
QList intlist;
intlist << 2 << 5 << 2 << 4 << 2;
QMutableListIterator mit(intlist);
mit.toBack();
mit.insert(2);
qDebug() << intlist;
int findings = 0;
while (mit.findPrevious(2))
findings++;
qDebug() << findings;
return 0;
}