Search code examples
qt4qtabbar

Different close buttons on tabs


I am using QTabWidget, and I would like to know if I can use different icons for close buttons on tabs? I think style and setCornerWidget may not work for this case.

Thanks!


Solution

  • I don't think that this is possible with a QTabWidget. You could use a QTabBar where you can use QTabBar::setTabButton to set a widget of your own design into the tab position.