Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
4.4.3
-
None
Description
So, I am trying to understand why my QMdi application returns a null
pointer from QMdiArea::currentSubWindow() when a QFileSelectionBox was
opened. I am looking at the difference between the functions
QMdiArea::activeSubWindow() and QMdiArea::currentSubWindow() in version 4.4.3 as released and while looking into the source code I see that the QMdiArea
must not be in the state "isActivated" in order to be able to get a
currentSubWindow() ( see qmdiarea.cpp:1737 ).
In my scenario a file selection box from my own application has deactivated my
main window but I am still trying to get the currentSubWindow() (the last
active one, as I take it from the rest of the code in qmdiarea.cpp) but
that's to no avail because isActivated is actually still "true".
My request is that the check for isActivated be dropped and the line 1737 in qmdiaria.cpp be changed for:
if (!window()->isMinimized())
return 0;
so that the code can actually return the last current subwindow regardless of
whether activation events have been received or processed.