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

qApp->setStyleSheet("/* */") breaks QTabBar::close-button

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.9.6, 5.10.1, 5.11.1, 5.11.2
    • Fix Version/s: 5.12.1
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      macOS 10.14
    • Platform/s:
      macOS
    • Commits:
      2a7f5a6723469a9f432a1fd1ee3130e3cc80cf8f

      Description

      Using the command qApp->setStyleSheet("/* */") removes the QTabBar::close-button from the tab. The close functionality is still maintained, but the button is invisible.

      This is a regression from 5.8 to 5.9 and was originally reported as QTBUG-61092, which was only superficially fixed in 5.9.2 and the issue closed. Reopening the issue was apparently the wrong thing to do (see last comment to QTBUG-61742).

        Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.cpp
          0.2 kB
        3. mainwindow.h
          0.3 kB
        4. mainwindow.ui
          2 kB
        5. tabTest.pro
          1.0 kB

          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:
              rbq2024 Robert Bittl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes