Hello all!

I have a problem using QCompleter with QFileSystemModel.
My code is:

Qt Code:
  1. dirModel = new QFileSystemModel(this);
  2. dirModel->setRootPath(QDir::currentPath());
  3. lineEdit = new QLineEdit(/*here a tool bar I am using*/);
  4. completer = new QCompleter(lineEdit);
  5. lineEdit->setCompleter(completer);
  6. completer->setModel(dirModel);
To copy to clipboard, switch view to plain text mode 

When I type something in the lineEdit, all I the suggestions I get from the completer is the root "/".

Does someone know what I am missing here??

Thanks a lot in advance!!!!!!