When adding a new QMdiSubWindow to a QMdiArea the QMdiSubWindow will behave as expected, however when you maximize the QMdiSubWindow, the QMdiSubWindow's title bar will span across the QMainWindow's menubar (i.e. - File, Edit, etc).
Therefore the QMdiSubWindow's minimize, maximize and close buttons will be placed just under the QMainWindow's minimize, maximize and close buttons. This seems to me like incorrect behavior in that the QMdiSubWindow's titlebar, buttons, etc should be maintained inside the QMdiArea and not be allowed to expand outside of that. This thought comes from while the QMdiSubWindow is not maximized it's bounds remained within the QMdiArea's, so the same would be expected when maximized.
Any reason why this isn't happening? Any workarounds?
See attached photos for more information