QFocusEvent Class Reference


The QFocusEvent class contains event parameters for widget focus events. (details) (complete member list)

#include <qevent.h>

Inherits QEvent.


Detailed Description

The QFocusEvent class contains event parameters for widget focus events.

Focus events are sent to widgets when the keyboard input focus changes.

The virtual functions QWidget::focusInEvent() and QWidget::focusOutEvent() receive focus events.

See also: QWidget::setFocus().


Member Function Documentation

QFocusEvent::QFocusEvent (int type)

Constructs a focus event object.

The type parameter must be either Event_FocusIn or Event_FocusOut.

bool QFocusEvent::gotFocus () const

Returns TRUE if the widget received the text input focus.

bool QFocusEvent::lostFocus () const

Returns TRUE if the widget lost the text input focus.


This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech