TonyInSoMD
8th August 2017, 12:33
I've got a program with 2 windows that are open. When I programmatically change the window that's on top, it doesn't have focus.
SecondWindow->raise();
SecondWindow->setFocus();
The second window comes to the top, but doesn't have focus
Since I'm working in windows if I add
HWND WinHandle = (HWND)SecondWindow->winID();
SetFocus(WinHandle);
It gets focus. Is there a way to do it using strictly Qt?
SecondWindow->raise();
SecondWindow->setFocus();
The second window comes to the top, but doesn't have focus
Since I'm working in windows if I add
HWND WinHandle = (HWND)SecondWindow->winID();
SetFocus(WinHandle);
It gets focus. Is there a way to do it using strictly Qt?