Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15, 6.0, 6.1, 6.2, 6.3
-
None
-
-
f3c998510 (dev), a549aa434 (6.4), e5d591a0d (dev), 8dd90fc8a (6.4), 5cff1bc56 (tqtc/lts-6.2), cec1aff0b (6.5), 732c6ab2d (tqtc/lts-6.2), 762adef2a (tqtc/lts-5.15), 01679de6e (tqtc/lts-5.15)
-
2022wk40FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk44FOQtforAndroid, 2022wk46FOQtforAndroid, 2022wk48FOQtforAndroid, 2022wk50FOQtforAndroid
Description
QDirIterator (using AndroidContentFileEngineIterator) will iterate forever if the folder conatins nested folders.
Steps to reproduce:
- use android 10+
- open Android's file manager and create a few nested folders
- run the following Qt code and choose the to top folder with nested folders
const auto url = QFileDialog::getExistingDirectory(this); QDirIterator it{url, QDirIterator::Subdirectories}; while(it.hasNext()) { qDebug() << it.next(); }