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

QTabBar: tab close buttons not rendered on macOS when custom stylesheet is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.10.0
    • Fix Version/s: None
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      macOS High Sierra 10.13.2, Qt 5.10.0
    • Platform/s:
      macOS

      Description

      The problem here is similar to that of QTBUG-61092 only that one is claimed to have been fixed in 5.9.2 but I can see the problem in 5.10.0: tab close buttons are not rendered on macOS only in quite specific conditions: when QTabBar is used along with QTabWidget which is inside QSplitter which has some stylesheet applied. It seems just any stylesheet applied to QSplitter makes tab close buttons disappear.

      Attached the test project with which the issue reproduces and the screenshot from Qt Designer - tab close buttons are not rendered even there, same thing in runtime.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              tpochep Timur Pocheptsov
              Reporter:
              d1vanov Dmitry Ivanov
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes