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, x, y
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 %Event, %Button, and %Key hashes are exported into the user's namespace. The %Event hash contains the Qt Event_* constants. All %Event elements have had their prepending Event_ removed for brevity. The %Button hash contains the ButtonState enum constants with the Button removed. So LeftButton becomes $Button{Left} and KeyButtonMask becomes $Button{KeyMask}, and so on. The %Key hash contains all the qkeycode.h keys without the Key_.
SEE ALSO
qevent(3qt)
AUTHOR
Ashley Winters <jql@accessone.com>