<class name="QFocusEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QFocusEvent.html#QFocusEvent(com.trolltech.qt.core.QEvent.Type, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt; class contains event parameters for widget focus events.&lt;/p&gt;
&lt;p&gt;Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, key presses (such as &lt;b&gt;Tab&lt;/b&gt; or &lt;b&gt;Backtab&lt;/b&gt;), the window system, popup menus, keyboard shortcuts, or other application-specific reasons. The reason for a particular focus event is returned by &lt;a href=&quot;QFocusEvent.html#reason()&quot;&gt;&lt;tt&gt;reason&lt;/tt&gt;&lt;/a&gt; in the appropriate event handler.&lt;/p&gt;
&lt;p&gt;The event handlers QWidget::focusInEvent() and QWidget::focusOutEvent() receive focus events.&lt;/p&gt;

@see &lt;tt&gt;QWidget::setFocus&lt;/tt&gt;
@see &lt;tt&gt;QWidget::setFocusPolicy&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/focus.html&quot;&gt;Keyboard Focus&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QFocusEvent(com.trolltech.qt.core.QEvent.Type type, com.trolltech.qt.core.Qt.FocusReason reason)" doc="/**
&lt;p&gt;Constructs a focus event object.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;type&lt;/tt&gt; parameter must be either QEvent::FocusIn or QEvent::FocusOut. The &lt;tt&gt;reason&lt;/tt&gt; describes the cause of the change in focus.&lt;/p&gt;
 */"/>
    <method name="public QFocusEvent(com.trolltech.qt.core.QEvent.Type type)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QFocusEvent.html#QFocusEvent(com.trolltech.qt.core.QEvent.Type, com.trolltech.qt.core.Qt.FocusReason)&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;type&lt;/tt&gt;, Qt::OtherFocusReason). */"/>
    <method name="public final boolean gotFocus()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; is QEvent::FocusIn; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean lostFocus()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QEvent.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; is QEvent::FocusOut; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.FocusReason reason()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
</class>
