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

QTabBar: Add ability to set background color per tab

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.3.0
    • GUI: Look'n'Feel
    • None

    Description

      It would be useful to be able to set the background brush of each individual tab in a QTabBar.

      setTabBrush(int index, const QBrush &brush);

      Something to deal with the differences when the tab was current and not would be nice as well.

      Note:
      It is currently possible to deal with the second suggestion by using widget style sheets:
      QTabBar::tab:selected

      { font: bold; background-color:red; }

      Attachments

        1. tab_background.patch
          34 kB
        2. tabbar_stylesheet.png
          tabbar_stylesheet.png
          7 kB
        3. tabbar_wanted.png
          tabbar_wanted.png
          21 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rve Anders Bakken
            Votes:
            13 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes