If you mean you don't want the header visible then
Qt Code:
  1. ui->treeView->header()->hide()
To copy to clipboard, switch view to plain text mode