Re: [Qtreeview] How to let the child content always top display
Originally Posted by anda_skoa
Ah, you don't want to change the width of a column, you want certain cells to span more than a column.
Might be possible with a custom delegate on the first column.
When it is handling a top level entry it would do normal drawing, when handling a sub item it would ignore the cell rectangle's width.
Cheers,
_
solve this problem by using the section resize signals of Qheaderview, in the slot I hide the first line and show it again to trigger the first column repaint()
Bookmarks