Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.13.2
-
None
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.