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

Last tab of QTabWidget in RTL looks incomplete

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.11.1
    • None
    • Windows

    Description

      The last tab of QTabWidget, if

      centralWidget()->setLayoutDirection(Qt::RightToLeft)

      is set (Hebrew in my case) looks incomplete.

      Example

      LTR (English) - 

      RTL (Hebrew) - 

      As you can see, the last tab misses vertical line.

      The code I use to change a language:

      void MainWindow::setLanguage(const QString &lang)
      { 
          if(!lang.isEmpty()) { 
              QString file = QString(":/languages/translation_%1.qm").arg(lang); 
              qApp->removeTranslator(&m_translator); 
              if(m_translator.load(file)) { 
                  qApp->installTranslator(&m_translator); 
              } 
              if(lang == "he" || lang == "ar") 
                  centralWidget()->setLayoutDirection(Qt::RightToLeft); 
              else 
                  centralWidget()->setLayoutDirection(Qt::LeftToRight); 
          }
      }

      Attachments

        1. eng.png
          eng.png
          2 kB
        2. heb.png
          heb.png
          2 kB
        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
            folibis ruslan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes