PDA

View Full Version : Vertical Header For QTreeView



wirasto
9th October 2010, 05:50
I find there treeview that has a vertical header here (http://qt-apps.org/content/show.php/Qtitan+DataGrid+for+Qt?content=115020). Unfortunately not free software so difficult to find out how he adds the vertical header. Does anyone have an example for add a vertical header in QTreeView ?

viline
12th October 2010, 05:53
Unfortunately I didn't find too QTreeView realization of vertical header. The simple way - write your own version of the function


void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) cons

Look at attached files - there is example I used in my project. May be it help you. It is not really vertical header, just a simulation of it