https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/libs/utils/filesearch.h
FileContainer & FileContainerIterator could be an inspiration, too. The SubDirFileContainer enables traversal according to the selected filters and exclusion filters. This all is a part of the Utils lib inside QtCreator. Jarek ________________________________________ From: Development <development-boun...@qt-project.org> on behalf of Andreas Aardal Hanssen <andr...@hanssen.name> Sent: Tuesday, December 5, 2023 10:26 PM To: Qt Development Subject: Re: [Development] Future of java-style iterators? How about QDir::iterator, QDir::cbegin, basically make QDir a container? Or make a new class that serves the same purposeā¦ /me likes the QDir idea.. :-) Andreas Tir 5 des 2023 kl. 22:15 skrev Mathias Hasselmann via Development: Hi, would QDirIterator[1] be part of this deprecation? Its API clearly seems be inspired by the Java-style iterators. While I do not care much about the other Java-style iterators, I really like this iterator and use it a lot. What would be this iterator's modern replacement in Qt? Ciao Mathias [1] https://doc.qt.io/qt-6/qdiriterator.html Am 03.12.2023 um 21:56 schrieb Christian Ehrlicher: > Hi, > > Some days ago we got an error report in the forum about QHashIterator, > turned out to be a missing documentation for a complete class which > remained unnoticed since Qt 6.0 > (https://bugreports.qt.io/browse/QTBUG-119461). > This leads to the question if we should deprecate all java-style > iterators since they seem to be a) not widely used and b) it looks like > we don't support them in a way we should. > What do you think? > > > Cheers, > Christian > > -- Development mailing list Development@qt-project.org<mailto:Development@qt-project.org> https://lists.qt-project.org/listinfo/development -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development