George Neil
30th September 2009, 09:59
In the examples\mainwindows\mdi
i tried the following code
QList<QMdiSubWindow *> windows = mdiArea->subWindowList();
foreach (QMdiSubWindow *pSubWindow, windows)
{
bActive = pSubWindow->isActiveWindow();
bHasFocus = pSubWindow->hasFocus();
}
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..?
i tried the following code
QList<QMdiSubWindow *> windows = mdiArea->subWindowList();
foreach (QMdiSubWindow *pSubWindow, windows)
{
bActive = pSubWindow->isActiveWindow();
bHasFocus = pSubWindow->hasFocus();
}
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..?