In the examples\mainwindows\mdi
i tried the following code
Qt Code:
QList<QMdiSubWindow *> windows = mdiArea->subWindowList(); foreach (QMdiSubWindow *pSubWindow, windows) { bActive = pSubWindow->isActiveWindow(); bHasFocus = pSubWindow->hasFocus(); }To copy to clipboard, switch view to plain text mode
I tried with 3 subwindows. Even though only one is active [ie selected], all the subwindows are giving the status as active....Also none of the subwindows are having the focus...Why..?
Bookmarks