Important: Please read the Qt Code of Conduct -

Remove Header from QTreeView

  • Generally Qtreeview by default displays Name, Size, Type, Date Modified when used. I want to remove it from my code. I tried using treeview->header()->hide but it just hides the header and when i expand the tree i.e. child folders, its sub folders aren't visible. Any alternative please?

Log in to reply