Add new column treemodel and customheaderview...
Unsolved
General and Desktop
-
Hi ,
I have a custom headerview which consists of Qheaderview.
I also have a model where I apply a custom treemodel.
When I drag the column headers from this headerview to the above area, the relevant column is hidden.
I want something more after this.When I drop the column to the above field, I want a new column to be added to the 0th column index of the treemodel and also of the qheaderview.
I am using the addcolumn() function for the TreeModel and adding a column.
It doesn't seem to give the result I want in QheaderView.
How should I manage these two classes synchronously? -
Hi,
By default, QHeaderView gets its content from the model as well. Are you also creating and returning the adequate data from it ?