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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 5.12.1
    • 5.9.6, 5.10.1, 5.11.1, 5.11.2
    • Widgets: Style Sheets
    • None
    • macOS 10.14
    • macOS
    • 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. tabTest.pro
          1.0 kB
          Robert Bittl
        2. mainwindow.ui
          2 kB
          Robert Bittl
        3. mainwindow.h
          0.3 kB
          Robert Bittl
        4. mainwindow.cpp
          0.2 kB
          Robert Bittl
        5. main.cpp
          0.2 kB
          Robert Bittl

        Issue Links

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

          Activity

            People

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