How to remove columns from QTreeView (using QDirModel)?

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

Is there any way to remove these columns?

+1
user-interface qt qt4
source share
1 answer

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

+4
source share

All Articles