Instead of reimplementing the "high-level" QStyle::drawControl(CE_Header), wouldn't it be sufficient to reimplement "lower-level" functions:
- QStyle::subElementRect(SE_HeaderLabel)
- QStyle::drawControl(CE_HeaderLabel)
- QStyle::subElementRect(SE_HeaderArrow)
- QStyle::drawPrimitive(PE_IndicatorHeaderArrow)
?
EDIT: Nevermind, of course the request still gets delegated to the "wrong" style object.





Reply With Quote

Bookmarks