Well ... this seems a bit unfair for developers. The QTabBar is private and I cannot reclass it. However I did find a work around. In PyQt it looks something like this
In the QMainWindow class
for c in self.children():
style = theme.getStyle()
c.setStyleSheet(style); break
for c in self.children():
if isinstance(c, QTabBar):
style = theme.getStyle()
c.setStyleSheet(style); break
To copy to clipboard, switch view to plain text mode
I would appreciate it if Qt gave us access to the event that creates the QTabBar so we can handle it better. In the meantime this works because the QDockWidget parent doesn't receive the styles for QTabBar and QTabWidget.
Bookmarks