Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.3
-
None
-
The bug occurs on Ubuntu 20.04.2 LTS, build kit Desktop Qt 5.12.3 GCC 64bit.
Description
QTabBar behaves in a strange way while I try to add couple of tabs which have specific text (names). Most likely this behaviour depends on a width of tab's text and (maybe) text eliding. So, when I try to add some tabs on a QTabBar and there is a lot of space available, it shows up the scroll buttons, which is really unexpected and useless from user's point of view.
My case:
1) Add a QTabBar on QHBoxLayout.
2) Add the first tab with text "All" and the tab with symbol "+", this last one is supposed to add a Tab with providing a Tab's name via dialog window.
3) Then, user adds a new tab with text "Alll" or "iiii", everything is still Ok.
4) User adds a tab with other short text, for example "3", and scroll buttons are shown up on this QTabBar, and this is a bug,
Instead of be extended up to available space, QTabBar hides couple of tabs and adds scroll buttons.
I've found two similar cases on Bug tracker:
https://bugreports.qt.io/browse/QTBUG-26134
https://bugreports.qt.io/browse/QTBUG-26154
which were unfortunately closed long time ago.