snydesc
24th September 2012, 21:05
I need to set the height of the horizontal header in a QTreeview to a fixed height.
When I do treeview->header()->setFixedHeight() the header resizes as expected but the header then covers some of the viewport. This results in data located in the tree to be covered by the header. How do I prevent this from happening?
Added after 1 28 minutes:
Well I found a solution http://qt-project.org/forums/viewthread/9420
this is really annoying. It seems like this should be default behavior of a tree and not something the user has to implement.
When I do treeview->header()->setFixedHeight() the header resizes as expected but the header then covers some of the viewport. This results in data located in the tree to be covered by the header. How do I prevent this from happening?
Added after 1 28 minutes:
Well I found a solution http://qt-project.org/forums/viewthread/9420
this is really annoying. It seems like this should be default behavior of a tree and not something the user has to implement.