Search code examples
user-interfaceqtqt4

How can I remove columns from a QTreeView (using QDirModel)?


I have a QDirModel attached to a QTreeView and I only want to see the paths, not size, type and date modified.

Is there a way to remove these columns?


Solution

  • QTreeView::setColumnHidden(int column, bool hide) should do the trick.