Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.14
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.