I have the same problem as:
What is the method to set the text for a QTreeWidget's header?
with one difference: I'm using a treeView, not tree widget, so the answer there didn't help.
I couldn't find in the documentation any instructions how to it.
So - how can I set the header text of a QTreeView?