PDA

View Full Version : Is there a way to find out if a widget had focus before a hide event



Alex_123
3rd September 2009, 10:14
Hello! So the hide event can be spontaneous or not. I need this information on X11.

wysota
4th September 2009, 10:58
The event being spontaneous or not has nothing to do with focus. You can call QWidget::hasFocus() or connect to the QApplication::focusChanged() signal to determine the focus.