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.
proxyModel->setDynamicSortFilter(true);
proxyModel->setSourceModel(&m_filesystem);
m_ui.v_files->setModel(proxyModel); //QListView
proxyModel = new QSortFilterProxyModel(this);
proxyModel->setDynamicSortFilter(true);
proxyModel->setSourceModel(&m_filesystem);
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:
proxyModel->setFilterFixedString(m_toolbarSearch->text());
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
Bookmarks