Is there a way to assign CSS style for the QTabBar close button? Normally QTabBar can be styled, but I can't find its how button can be referenced from CSS.
+1
A:
It seems like there is not currently a way to style the close button via Qt style sheets. Not only is it not documented, there doesn't seem to be a style for it in src/gui/styles/qstylesheetstyle.cpp.
You can set the button using QTabBar::setTabButton()
method.
You may want to submit it as a feature request on the Qt Bug Tracker.
C. Bibler
2009-11-05 16:52:42
Since Qt 4.6, the close buttons can be styled us QStyleSheets: `QTabBar::close-button { image: url(close.png) subcontrol-position: left; } QTabBar::close-button:hover { image: url(close-hover.png) }`
C. Bibler
2009-12-02 17:50:51