PDA

View Full Version : ALT+TAB & changeEvent



munna
5th September 2006, 10:56
When I click on the minimize button of the application window, changeEvent is called. When I press ALT+TAB to bring the application window in front, the changeEvent is not called.

What event is called when I press ALT+TAB to get my application back into focus.

Is it focusInEvent ? I tried even this but there is another widget that gets the focus when the window is shown.

Can someone please help me with this?

Thanks a lot.

wysota
5th September 2006, 16:06
There might be no event for that at all (well, not exactly, I guess QEvent::Show might be sent). The window manager just reveals the window. FocusIn might be sent too, but only as a side effect of "activating" the window.

jpn
5th September 2006, 19:15
What about QEvent::WindowActivate?