when I list entries via QDir::entryInfoList I’m getting two extra entries, one with dot and second one with two dots. If I set QDir::NoDot and QDir::NoDotDot then nothing is listed. I need just the contents of the folder I’m passing to QDir, nothing else.
QFileInfo fi(model_->filePath(e));
auto file_path = fi.absoluteFilePath();
auto lyst = QDir(fi.absoluteFilePath()).entryInfoList(/*QDir::NoDotAndDotDot makes lyst empty*/);
foreach (QFileInfo info , lyst)
{
qDebug() << info.absoluteFilePath();
}
Pass
QDir::NoDotAndDotDotfilter ORed withQDir::Filesor anything of your interest toentryInfoList