Maybe QTabBar::setTabButton() will do what you need.