Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.6.2
-
None
Description
QMdiArea::subWindowActivated() is not emitted when an already visible top level widget is added to the QMdiArea. If it is added with QMdiArea::addSubWindow() without creating the subwindow for it then it does not emit the signal and two windows can end up appearing active inside the QMdiArea.
However if it is added to a QMdiSubWindow first and then that is added to the QMdiArea then it works correctly.
Attached is a patch to the mdi example to reproduce this problem, click on new file three times, then on save then on new again and see the bad behavior.