|Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions|
The QFocusEvent class contains event parameters for widget focus events. More...
List of all member functions.
Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, keypresses (e.g. Tab or Backtab), the window system, popup menus, keyboard shortcuts or other application specific reasons. The reason for a particular focus event is returned by reason() in the appropriate event handler.
The event handlers QWidget::focusInEvent() and QWidget::focusOutEvent() receive focus events.
Use setReason() to set the reason for all focus events, and resetReason() to set the reason for all focus events to the reason in force before the last setReason() call.
See also QWidget::setFocus(), QWidget::focusPolicy, and Event Classes.
This enum specifies why the focus changed.
See the keyboard focus overview for more about focus.
Constructs a focus event object.
The type parameter must be either QEvent::FocusIn or QEvent::FocusOut.
Returns TRUE if the widget received the text input focus; otherwise returns FALSE.
Returns TRUE if the widget lost the text input focus; otherwise returns FALSE.
See also setReason().
See also reason() and setReason().
See also reason() and resetReason().
This file is part of the Qt toolkit. Copyright © 1995-2005 Trolltech. All Rights Reserved.