Hey Kiteh, You should be able to style all Qwidgets using the setStyleSheet function and color it with CSS.
setStyleSheet("color: #FF0000;") *Jakob Kousholt - Freelance Creature Modeler and Concept Sculptor* +1 (347) 327-1370 jako...@gmail.com www.jakejk.com On Wed, 2 Jan 2019 at 19:19, kiteh <kiteh.0...@gmail.com> wrote: > Hi all, > > I am trying to set text color to Red in a specified tab of QTabBar. > Tried using the command `setTabTextColor`, there is something happening > but the text color is not changing, it is still remaining as white even > when I put it at the __init__ stage. > > This is my code : https://pastebin.com/raw/t1dyGDi6 > > I placed in a print statement in `set_menu()` as follows: > def set_menu(self): > .... > # This will returns me PySide2.QtGui.QColor.fromRgbF(1.000000, > 0.000000, 0.000000, 1.000000), values for Red > print self.tab_bar.tabTextColor(0) > > Wondering if I have miss out something here? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/2a378454-9f3a-4c96-a263-534616f0bb9e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/2a378454-9f3a-4c96-a263-534616f0bb9e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAEKd6bZLv15geLOWqDChi0CCRtVno-Pm-%2BS%2B%2BmUOn42gFgchng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.