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

QTabBar tabs above current index not visible if current index is set before the tabbar is drawn

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 2a7da1b3c (dev), 38c0d6004 (6.6), 9177dbd87 (6.5)

    Description

      There is one more regression after recent changes to QTabBar, previously reported issue here: https://bugreports.qt.io/browse/QTBUG-113345

      Using a vertical tabbar with icons and text, the items above the current index is not shown if the current index is set to other than 0 before the window is drawn.

      The issue first occur in Qt 6.5.1, same issue with the latest code from the dev branch.

      I'm using a custom tabbar similar to the one in Qt Creator: https://github.com/strawberrymusicplayer/strawberry/blob/master/src/widgets/fancytabwidget.cpp

      If I move setCurrentIndex() to the showEvent() the issue does not occur.

      I'll attach a video showing the problem.

      vhilshei 

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-114204
          # Subject Branch Project Status CR V

          Activity

            People

              vhilshei Volker Hilsheimer
              jonaski Jonas Kvinge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change