2

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.

catinred
  • 329
  • 4
  • 12

1 Answers1

-1
model.setNameFilterDisables(false);
Qantas 94 Heavy
  • 15,750
  • 31
  • 68
  • 83