XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.2
    • Build System
    • None
    • Ubuntu
    • Linux/Other display system

    Description

      In the following code i have created a QTabWidget with Qt Designer which has 6 pages.

      After ui compile finished i write the following line of code in the exported py file:

       

      self.tabWidget.setTabVisible(5,False)

      so i set the the last page of QTabWidget to be hidden.

      The full py code as attachement:

      The problem with the execution of this code is that i cannot navigate to all the pages with displayed arrow keys in the corner of QTabWidget

      If i remove the one line snippet code then i can normally navigate.

      Is there any related bug i have to know?
      How can i fix this error?

      Os version: Linux chris-Inspiron-3847 5.4.0-110-generic #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

      PyQt5 version: 5.15.4

      Note that if i resize the QDialog window then all visible page are display correctly.

      Also note, that this error only oquered when i hide the *last* page.

      I have one possible solution:

      self.tabWidget.update()

      after page hide, but it didn't work .

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            el07694 Chris Pappas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes