Priority: Not Evaluated
Resolution: Cannot Reproduce
Affects Version/s: 4.7.4, 4.8.2
Fix Version/s: None
Component/s: GUI: Look'n'Feel
QTabWidget::setTabText method is making the current Tab visible ( Calling QTabBarPrivate::refresh that itself call QTabBarPrivate::makeVisible ).
This behavior should be optional and most likely deactivated by default.
For instance, I'm using the QTabWidget to host various code editors, each time a modification is done in an editor, I modify the Tab title to signify the dirty unsaved state ( Appending "*" that get removed when I save the file ).
As a result the QTabBar is scrolling the tabs, which is very very annoying and impractical. You wouldn't code in an IDE or Text Editor doing that.
I have not found a way to change this behavior ( Except by not modifying the Tab text ), and to make things worse, the current Tab is scrolled to the extreme right and not in the middle of the QTabBar.
Here is a Python example:
First try scrolling on the right, and hit one of the two buttons, then set the current Tab to either 16 or 24 and hit the matching button.