Disabling/hiding a directory from QTreeView
phamtv last edited by
I am using a QTreeView to populate a file directory using a QSortFilterProxyModel with the QFileSystemModel as the sourcemodel. How can I hide a particular directory from the treeview?
giesbert last edited by
as youuse QSFPM, you can, sure.
Just overwrite filterAcceptsRow and check for the path.