@jsulm thank you so much
it worked with these code:
function:
void searchPaths(QVariant path) { QStringList files; // add files to this ( paths ) QStringList filter; // mp4 files filter filter << "*.mp4"; // add filter qInfo("-----"); QDirIterator dir(path.toString(), filter, QDir::Files, QDirIterator::Subdirectories); // get all files in directory while (dir.hasNext()) { qInfo() << dir.next(); files << dir.next(); // } }use:
searchPaths("enter path here")now i can sleep easy. thanks