Any specific fix would be just for Oxygen style, so it is still unclear if starting to code this makes much sense. But. As a low-hanging fruit today I called this code on my tab widget of Kexi side pane:
As for so cheap fix the result looks quite nice to me. Also presented result for two other styles. I think it's good hint for similar UIs. Also works with Qt-only apps.