Hi there!

I'm trying to display the contents of a directory in a QListView. It works great like this:

Qt Code:
  1. QDirModel *model = new QDirModel;
  2. ui.configFileList->setModel(model);
  3. ui.configFileList->setRootIndex(model->index("config"));
To copy to clipboard, switch view to plain text mode 

But the view doesn't update when I write a file into that directory or drop something there in a file manager. I thought that was the whole model view thing all about. I also tried explicitly calling update() on the widget, nothing. Now after reading the docs and taking a look at the Directory View example to no avail, please help me to make my directory view update automagically.