Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
When using a QMdiArea and the scrollbars are set and the option DontMaximizeSubWindowOnActivation is set as follows:
mdiArea->setOption(QMdiArea::DontMaximizeSubWindowOnActivation);
mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
it is possible to scroll away the maximized sub window.
Steps to reproduce (using the attached example):
- Compile an run the example.
- You will see a normal sub window in front of a maximized sub window.
- Move that window to the top of the mdiArea and beyond. (the ScrollBar Appears)
- Now use that scrollbar to scroll to the top and (the maximized sub window moves down) .
This is not the expected behavior because the window in the back is maximized and should not move down.