Menu

QTabWidget change color QTabBar

Anonymous
2018-10-30
2018-10-30
  • Anonymous

    Anonymous - 2018-10-30

    hi,

    is posiible in Qt Designer (or one time in script) change color of selected tab? I mean color QTabBar only (probably), not in the whole QTabWidget (background,...)

    Thank you for possible suggestions.

     
  • Stefan Zieker

    Stefan Zieker - 2018-10-30

    add this to the stylesheet row in QtDesigner (see attachment):

    QTabBar::tab:top:selected {
        background-color: #00ff00;
    }
    
     
    • Anonymous

      Anonymous - 2018-10-30

      Perfect, thank you Stefan.

      ps: color fill does not take in consideration type of tabShape, but the purpose of visibility is nice

       

Anonymous
Anonymous

Add attachments
Cancel