@anshah said in QFileDialog: Filter directory to include only filenames in QStringList:
I just want to display the filenames in the QStringList
I don't believe you can do that.
To stay in one directory and only offer a passed-in list of filenames is not the job for a QFileDialog. You might just as well just present the user with a list of those filenames to pick from, and you don't need to bother showing a directory because you don't want the user to change it or navigate elsewhere.