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

QTabWidget: Styling QTabBar with a simple stylesheet overwrites other tab properties.

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      If a simple stylesheet to a QTabWidget's tabbar is applied in order to provide a red border to each tab, this results in the loss of all other style properties of the tab bar (e.g. margins). The native 'look and feel' of the tab bar seems to be overridden. Like:

      QTabBar::tab {
      border: 1px solid red;
      }
      

      Attaching sample code and output snapshot

      Attachments

        1. qtbug73882.PNG
          qtbug73882.PNG
          13 kB
        2. qtbug73882.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes