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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.