JuanMO
18th November 2010, 18:18
Hello,
I have a Qt application with severals views ( QWidgets ).
I have a windows service and when same event arrives I must check if any view of the Qt Application has the focus.
At first I try to compare with handles obtained with:
GetForegroundWindow() == FindWindow(L"MyApp",0)
But this fails and FindWindows return NULL.
I think that I miss so set something in QtApplication But I can't Find what could be
Thanks in advance
Juan Manuel
I have a Qt application with severals views ( QWidgets ).
I have a windows service and when same event arrives I must check if any view of the Qt Application has the focus.
At first I try to compare with handles obtained with:
GetForegroundWindow() == FindWindow(L"MyApp",0)
But this fails and FindWindows return NULL.
I think that I miss so set something in QtApplication But I can't Find what could be
Thanks in advance
Juan Manuel