Hi,

When i try to filter items with a QSortFilterProxyModel it doesn't work properly.I've been trying to solve this problem, but i can't figure out what i am missing.

Qt Code:
  1. proxyModel = new QSortFilterProxyModel(this);
  2. proxyModel->setDynamicSortFilter(true);
  3. proxyModel->setSourceModel(&m_filesystem);
  4. m_ui.v_files->setModel(proxyModel); //QListView
To copy to clipboard, switch view to plain text mode 

and then just doing this should work, i guess:
Qt Code:
  1. proxyModel->setFilterFixedString(m_toolbarSearch->text());
To copy to clipboard, switch view to plain text mode 

But it doesn't, it seems it's just filtering the first element.
Any ideas?

Thanks