I want to create (subclass ?) QHeaderViewto support drawing texts vertically (I am thinking of long descriptions for very short contents...).

As QHeaderView::paintSection() does not really paint by itself, but rather via its style, I have subclassed QCommonStyle, reimplemented QCommonStyle::drawControl() and got that to work: the labels (those sections configured via an item role) were drawn vertically.

I then remembered reading about ProxyStyle.
I changed my code to use that.
However, once the ProxyStyle called the style (via its member variable), that style does not know about my proxy.
As QCommonStyle (e.g.) calls itself to delegate various subtasks, my ProxyStyle is just getting called once (for the part I do not want to modify). My modification to the subtask is not getting called.

Has anyone experience in how that could be achieved?
(I don't see how I can work around that in/with ProxyStyle.)

Best regards, and thank you
Christoph

PS: If someone knows a better way to achieve my original goal of drawing header labels vertically, I'd be interested in that as well!