3

i want to get all the files that are located in a specified directory but without their extensions at the end .I did this Qt Code:

QDir myDir(mConfigDirectory);

         filters << "*.ini";
         myDir.setNameFilters(filters);
     list = myDir.entryList ();
    qDebug()<<list;

but i can't find the way to separate the name from the extension and get only names?!

Ibrahim MAATKI
  • 363
  • 4
  • 19

1 Answers1

3

QFileInfo Class doesn't help in this case? See QString QFileInfo::baseName

Sam R.
  • 16,027
  • 12
  • 69
  • 122