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

QTabBar shows scroll buttons without need

    XMLWordPrintable

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.
    • Linux/Other display system

    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.

       

      Attachments

        1. capture_1-1.PNG
          capture_1-1.PNG
          11 kB
        2. capture_2-1.PNG
          capture_2-1.PNG
          10 kB
        3. capture_ok-1.PNG
          capture_ok-1.PNG
          13 kB
        4. QTabBar_test-1.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            igor_sokoliuk Igor S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes