I can't dereference a QMutableListIterator like an STL iterator - with *it.
I'm trying to use QMutableListIterator::value() but my program crashes. What is the right way to do this?
QFileInfoList files;
// populate list
QListIterator<QFileInfo> it(files);
it.toFront();
QFileInfo = it_top.value();
// crash
The error is
ASSERT: "item_exists()" in file /usr/include/qt4/QtCore/qlist.h, line 778
Thanks