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

QTabWidget right aligns tabs if last tab is hidden

    XMLWordPrintable

Details

    • Windows

    Description

      When a QTabWidget is too large to fit on the current view and has its last tab hidden, clicking any tab but the first right aligns the entire tab bar according to the selected tab. If the tab is the second tab out of several this cuts off access to the tabs to the right until the window is readjusted so the full QTabWidget can be seen.

       

      The customer submitting the bug hypothesizes that there is an issue with QTabBarPrivate::makeVisible() , specifically the line

      const int lastTabEnd = horiz ? tabList.constLast().rect.right() : tabList.constLast().rect.bottom();

       

      See attached a modified version of the tabdialog example. Lines 66-75 in tabdialog.cpp have been added to reproduce the bug.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes