PyQT - setting the text color for a QTabWidget

前端 未结 1 1491
天命终不由人
天命终不由人 2021-01-22 17:16

Is there any way to set the text color of a certain tab that\'s part of a QTabWidget? QTabBar seems to have a method to set the tab text color, but I do not see a similar method

相关标签:
1条回答
  • 2021-01-22 18:01

    The tab text color can be set via the tab-widget's tabBar method:

    tabwidget.tabBar().setTabTextColor(index, color)
    
    0 讨论(0)
提交回复
热议问题