is possible to get margins size inside of QTabBar's tab according to current style?
I have an application running on Gnome, KDE, Windows. I use QTabWidget + QTabBar to show tabbed pages and I need to show close button + text + icon on some tabs and only icon on other tabs.
So I need to set some fixed width to those icon only tabs. I'd like to achieve centering icon in tab on all platforms.
The problem is, that every style has different left margins inside tab (look at attachement, black line = margin I want to know).
Is there any way to get this margin? Something like QStyle:: pixelMetric()?

If I know this size, it will be then very easy to calculate desired width for tab.

Thanks for any help.

As you can see from screenshot, this margin is very very small in KDE and quite significant in Gnome.