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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important 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

      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).

        1. main.cpp
          0.2 kB
          Robert Bittl
        2. mainwindow.cpp
          0.2 kB
          Robert Bittl
        3. mainwindow.h
          0.3 kB
          Robert Bittl
        4. mainwindow.ui
          2 kB
          Robert Bittl
        5. tabTest.pro
          1.0 kB
          Robert Bittl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            rbq2024 Robert Bittl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes