The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

QEvent - Interface to the Qt QEvent, QMouseEvent, QPaintEvent, QResizeEvent, and QTimerEvent classes

SYNOPSIS

use QEvent;

QEvent

Member functions

new, type

QCloseEvent

Inherits QEvent.

Member functions

new, accept, ignore, isAccepted

QFocusEvent

Inherits QEvent.

Member functions

new, gotFocus, lostFocus

QKeyEvent

Inherits QEvent.

Member functions

new, accept, ascii, ignore, isAccepted, key, state

QMouseEvent

Inherits QEvent.

Requires QPoint.

Member functions

new, button, pos, state

QMoveEvent

Inherits QEvent.

Member functions

new, oldPos, pos

QPaintEvent

Inherits QEvent.

Requires QRect.

Member functions

new, rect

QResizeEvent

Inherits QEvent.

Requires QSize.

Member functions

new, oldSize, size

QTimerEvent

Inherits QEvent

Member functions

new, timerId

DESCRIPTION

All QEvent* classes have been completely interfaced except QCustomEvent. It will take a bit of creativity to figure out how to make that work.

EXPORTED

The following scalars are exported into the user's namespace on behalf of QMouseEvent.

$NoButton $LeftButton $RightButton $MidButton $MouseButtonMask $ShiftButton $ControlButton $AltButton $KeyButtonMask

The %Event hash is exported into the user's namespace, and represents the Event_* constants. All %Event elements have had their prepending Event_ removed because of the lack of namespace problems.

CAVEATS

The exported names are very tempting to stuff into %Button.

SEE ALSO

QEvent(3qt)

AUTHOR

Ashley Winters <jql@accessone.com>