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

No right border for last tab in QTabWidget when setTabPosition set to South / bottom

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.2
    • Windows 10, x64
    • Windows

    Description

      When setTabPosition set to South (bottom) for QTabWidget - rightmost tab in TabBar doesn't have the right border when this tab isn't selected. Screenshot attached

      Steps to reproduce:

      1. Create new project (based on Widget in my case)
      2. Create QTabWidget with a couple of tabs
      3. Set setTabPosition to South 
      4. Compile and observe last/rightmost tab appearance in TabBar 
      Widget::Widget(QWidget *parent)
          : QWidget(parent)
          , ui(new Ui::Widget)
      {
          ui->setupUi(this);
      
          QTabWidget *tabWidget = new QTabWidget;
          QLabel *lbl1 = new QLabel("One");
          QLabel *lbl2 = new QLabel("Two");
      
          tabWidget->setTabPosition(QTabWidget::South);
          tabWidget->addTab(lbl1, "One");
          tabWidget->addTab(lbl2, "Two");
      
          QVBoxLayout *layout = new QVBoxLayout;
          layout->addWidget(tabWidget);
          setLayout(layout);
      }
      
      

      (notice absence of border to the right of  tab titled "Two" in the TabBar)

       

      Note: this behavior does not reproduce for other directions (North, East or West)

      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
            maxxii Maksim Piontkovskiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes