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

QTabWidget display is messed up by adding setCornerWidget in a dark background.

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      QTabWidget display is messed up by adding setCornerWidget in a dark background.

      It adds a white line above the TopRightCorner Widget messing up the display.

       

      To reproduce the issue:

      // code placeholder
      
      QTabWidget *tabWidget = new QTabWidget();
      tabWidget->setStyleSheet("QTabBar {background: #2e2f30;}"
      			 "QToolButton {background: #2e2f30; border: 0px solid #2e2f30;}");
      
      QAction *actionNew_Tab = new QAction();
      actionNew_Tab->setIcon(QIcon(":/resources/images/newTab.svg"));
      
      QToolButton *newTabButton = new QToolButton();
      newTabButton->setDefaultAction(actionNew_Tab);
      
      tabWidget->setCornerWidget(newTabButton, Qt::TopRightCorner); 

       

      Result:

      Please see the attached image.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            n_____n Nuno Jardim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes