Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11202

QTabBar: Add ability to set background color per tab

XMLWordPrintable

      While it is possible to set tab's text color of the QTabBar by calling QTabBar::setTabTextColor(), it is not possible to set tab's background color. There is no simple way how to achieve it.
      I see two possible ways:

      1.
      Extend public API -> add for instance a method QTabBar::setTabColor(int index, const QColor &color)

      2.
      Change method QTabBar::initStyleOption(QStyleOptionTab *option, int tabIndex) to be virtual

      This issue may be related to QTBUG-840 (t4id 169451).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dzyubenk Denis Dzyubenko (Inactive)
            tomas.hanak Tomáš Hanák
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes