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

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.10.0
    • Widgets: Style Sheets
    • None
    • macOS High Sierra 10.13.2, Qt 5.10.0
    • 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

        1. Tab_close_buttons_not_rendered.png
          143 kB
          Dmitry Ivanov
        2. tabTest.zip
          4 kB
          Dmitry Ivanov

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              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