Thanks to you, i only need the filename, so i have solved this with QDir dir(path); dir.setNameFilter(...); dir.entrylist( ... return filestring; I didn't know if this the nice way, but that work! :) thank you very much!