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

QTabWidget drawing issue with Qt static lib on Intel Mac when using stylesheet adjusting the border

    XMLWordPrintable

Details

    • macOS

    Description

      When a style is set to QTabWidget's border as below, hovering tabs creates visual strange behavior.
      This happens with static lib only and on Intel and Rosetta 2.

       QString styles;
      ...
       styles += QString("QTabBar {font-weight: 500; background: %1;}\n").arg(tabBar);
       styles += QString("QTabBar::tab {color: %1; padding: .3em .8em .1em .8em; border-top-left-radius: .4em; border-top-right-radius: .4em;}\n").arg(inactiveText);
       styles += QString("QTabBar::tab:!selected {font-weight: 400; border: 1px solid %1; }\n").arg(tabBar);
       styles += QString("QTabBar::tab:selected, QTabBar::tab:hover {background: %1; color: %2; border: 1px solid %3; border-bottom: 1px solid %4; }\n").arg(ribbonBackground).arg(activeText).arg(tabOutline).arg(ribbonBackground);
      

      Actual result

      How to reproduce
      1. Build Qt with the following configuration

      -static -debug-and-release -commercial -platform macx-clang -nomake examples -nomake tests -skip multimedia -no-dbus -cmake-generator "Ninja Multi-Config" 
      -- -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64";
      

      2. Use qtbug98912-addressbook-qtabwidget.zip (Modified version of Qt addressbook example )and run with #1

      3. When you hover over the tabs to the right of the selected tab, you
      should see the destructive drawing.

      Static Qt build environment : Qt6.2.1, M1, Xcode 13.1, macOS 11.6.
      Project build environment : Qt6.2.1, M1, Xcode 13.1, macOS 11.6.

      What is known
      This does NOT happen with pre-build Qt 6.2.1
      This does NOT happen on M1(ARM) with the static libs.

      Attachments

        Issue Links

          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
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes