QStringList filter; filter << "settings.ini"; QDirIterator iter(a.applicationDirPath(),filter,QDir::NoDotAndDotDot | QDir::Files,QDirIterator::Subdirectories); while (iter.hasNext()) { qDebug() << iter.next(); }