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

QTabBar scrolls incorrectly when a tab icon is changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.8.4, 5.3.2
    • None

    Description

      When a tab in a QTabBar (which had no icon before) receives an icon, and the tab bar uses scroll buttons (and has more tabs than fit on the screen), then the tab layout jumps such that the tab with the changed icon is aligned to the far right of the widget. This behaviour is undesirable; instead, the widget should keep the leftmost or rightmost tab fixed, and just move the the tabs to the left (or to the right) of the tab with the icon change slightly to compensate for the change in width.

      Attached is an example of the issue; the upper image shows the initial state of the tab bar, and the lower one shows the result after an icon was set for the active tab. As you can see, the active tab (with the changed icon) is moved by a large amount; it would be preferrable if it stayed roughly at its previous position.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            scummos Sven Brauch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes