QDirIterator it(dir, QStringList() << "*.jpg", QDir::Files, QDirIterator::Subdirectories);while (it.hasNext()) qDebug() << it.next();
https://ask.helplib.com/996819