diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp index f9bf1b2abe1..7d7fe156845 100644 --- a/src/corelib/io/qdiriterator.cpp +++ b/src/corelib/io/qdiriterator.cpp @@ -208,8 +208,8 @@ QDirIterator::~QDirIterator() /*! Advances the iterator to the next entry, and returns the file path of this - new entry. You should first check hasNext() before using this method, to - avoid unexpected results. + new entry. If hasNext() returns \c false, this function does nothing, and + returns an empty QString. You can call fileName() or filePath() to get the current entry's file name or path, or fileInfo() to get a QFileInfo for the current entry. @@ -228,8 +228,8 @@ QString QDirIterator::next() \since 6.3 Advances the iterator to the next entry, and returns the file info of this - new entry. You should first check hasNext() before using this method, to - avoid unexpected results. + new entry. If hasNext() returns \c false, this function does nothing, and + returns an empty QFileInfo. You can call fileName() or filePath() to get the current entry's file name or path, or fileInfo() to get a QFileInfo for the current entry.