QProxyStyle align QTreeView header with branch

401 Views Asked by At

I'm creating a QProxyStlye and would like to align the first header column with the items in the column. Normally the first column starts with (0,0) and the items is offset by the width of a possible branch indicator (red square in the image).

QTreeView

1

There are 1 best solutions below

0
On

Create custom delegate for QHeaderView, override paint method.