I just make a simple example about showing files/directories using QFileSystemModel and QListView. It works fine. And I want to filter some types of files I define.
QStringList list;
list << "*.jpg" << ".png";
model.setNameFilters(list);
the files I dont want to show up,such as test.doc, still in the listview, but they can not be selected. It is not what I want. I want it hidden. How to?
thanks.