1

I have a QTabWidget with a number of tabs I want to set the background color of each tab in the tabBar differently.

I can set the text color using: tabBar().setTabTextColor(index, color) But i want to set the background not the text color.

How can that be done?

Kamil.Khoury
  • 210
  • 2
  • 9
  • does this answer your question? https://stackoverflow.com/a/19807893/9501624 – Christian Karcher Aug 31 '21 at 09:57
  • No, it;s talking about the page background. I want to control the tab "button" background – Kamil.Khoury Sep 01 '21 at 10:03
  • Does this answer your question? [PyQt4: How to color each tab in QTabWidget separately?](https://stackoverflow.com/questions/47844741/pyqt4-how-to-color-each-tab-in-qtabwidget-separately) – ThePyGuy Sep 01 '21 at 11:34

0 Answers0