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

QTabWidget : tab bar overlapped by right corner widget, when we set min-width for it in style sheet and decrease window width.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.4
    • None
    • Windows 10x64 Qt 5.9.4 MSVC2015x64

    Description

      My widget has two tabs, and has right corner widget seted(The corner widget is QToolBar with lot of icons on it).
      I have weird behaviour of QTabWidget, when I set simple stylesheet, (see below) and start to decrease width of window:

      QTabWidget::tab-bar {
      min-width: 32ex;
      }
      

      The result is next:

      Even if i get rid of stylesheet, the behavior is not ok, when width became small for tab bar and corner widget:

      Looks like corner widget do not resized at all and only tab bar is resized and pushed to left side.

      I added simple example TableWidgetTest.zip. Style for QTabWidget::tab-bar is in MainWindow.ui file.

      Attachments

        1. first.png
          first.png
          5 kB
        2. second.png
          second.png
          5 kB
        3. TableWidgetTest.zip
          486 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
            AndriySlisarchuk Andriy Slisarchuk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes