SUMMARY If one opens a lot of tabs then the extra tabs get hidden and have to be scrolled to somehow. That works when you use the scroll wheel, but when you click on a tab the bar auto-scrolls to hide the overflown tabs. For example these are the tabs open, tabs hidden due to overflow are in parenthesis: 1 2 3 4 5 6 7 (8) (9) ^ When one scrolls to see the last tab, like this: (1) (2) 3 4 5 6 7 8 9 ^ Then clicking tab 8 will result in this: (1) 2 3 4 5 6 7 8 (9) ^ Instead of proper (this happens when you use the mouse wheel to scroll): (1) (2) 3 4 5 6 7 8 9 ^ OBSERVED RESULT The tab bar auto-scrolls and hides items that are after the clicked tab. EXPECTED RESULT The tab bar doesn't auto-scroll, that it behaves the same using a mouse click than it does when using a scroll wheel. SOFTWARE/OS VERSIONS Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8
This is a QTabBar, which behaves this way. I believe the auto-scrolling was intentionally added, but maybe you can convince Qt developers that it is not working correctly. Please report this issue directly to them via https://bugreports.qt.io/
Upstream bug: https://bugreports.qt.io/browse/QTBUG-85871