Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
How to change QTabBar close button size
M_Shao last edited by
I saw the post from 2013, but now at 2021, I hope there is a better solution.
I'm trying change the size of QTabBar close button. The setClosable() make this button appears, but it looks like a 16x16 png icon so even I set the styleSheet to the new width and height doesn't work. Then I change the icon to my own svg icon, it's still not working. Is it correct that width and height setting from stylesheet for this close button just doesn't work? Is there any way to change the size of this close button without subclassing and writing close related functions? I wish there are methods from QTabBar to customize the close button.
Any help/info would be appreaciated.
Did you already checked QTabWidget::iconSize ?