Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1184

mdiArea.ViewMode() doesn't detects modes properly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.13.2
    • PySide
    • None
    • Windows

    Description

      Some tests make me believe self.mdiArea.ViewMode() Doesn't work properly. It always returns SubWindowView even if it's in tabbed mode.

      Easy reproduct:

      from PySide2.QtWidgets import QMdiSubWindow
      if self.mdiArea.ViewMode() == self.mdiArea.SubWindowView:
         print("it is subwindow mode")
         self.mdiArea.setViewMode(self.mdiArea.TabbedView)
      print(self.mdiArea.ViewMode())

      It prints:

      it is subwindow mode
      PySide2.QtWidgets.QMdiArea.ViewMode.SubWindowView

      But it should print PySide2.QtWidgets.QMdiArea.ViewMode.TabbedView since we just changed it upthere.
      I also tried to directly use self.mdiArea.setViewMode(QMdiArea.TabbedView) but that made no difference.

      btw: how do I add in-line code tags for just a word in this editor? I'm using bold because of that.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            saelyth Alejandro Gutierrez Almansa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes