KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
setNameFilters isn't working as I would expect, so if anyone can explain if I'm using it incorrectly, or if maybe this is a bug in Qt: Here is my code sample: QDir export_folder("C:\path"); QStringList fileList = export_folder.setNameFilters(QStringList()<<"*.exe"); after processing fileList contains the String "test.exe1" I would expect fileList to only include files with extension .exe NOT .exe*. If I wanted file extensions longer than .exe I would expect to put in "*.exe*" as my filter. Can someone help clarify, or do I manually have to process my fileList after the fact?
Tags (comma-separated)
Save Edits
Cancel