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

QTabWidget pane styling with style sheet does not position tab pane correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.1
    • 3.x
    • Widgets: Style Sheets
    • None
    • 6320dbb34a18f4fa822343c6661b9f34ce3fe38f

    Description

      When styling a QTabWidget's frame the position of the frame relative to the tab bar varies depending on the base style (and usually therefore the platform) - instead of being fixed by the CSS rules which appears to be the intention.

      In Qt Designer applying this stylesheet to a tab bar should cause the bottom of the tab bar and the top of the bar bar frame to just touch:

      QTabBar::tab

      { border:1px solid blue; padding:5px; }

      QTabWidget::pane

      { border:1px solid red; }

      Instead, the bottom of the tab bar descends below the top of the tab frame slightly. The effect is worse on MacOS.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes