QEvent - Interface to the Qt QEvent, QMouseEvent, QPaintEvent, QResizeEvent, and QTimerEvent classes
use QEvent;
new, type
Inherits QEvent.
new, accept, ignore, isAccepted
new, gotFocus, lostFocus
new, accept, ascii, ignore, isAccepted, key, state
Requires QPoint.
new, button, pos, state
new, oldPos, pos
Requires QRect.
new, rect
Requires QSize.
new, oldSize, size
Inherits QEvent
new, timerId
All QEvent* classes have been completely interfaced except QCustomEvent. It will take a bit of creativity to figure out how to make that work.
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.
%Event
Event_*
Event_
The exported names are very tempting to stuff into %Button.
QEvent(3qt)
Ashley Winters <jql@accessone.com>
To install Qt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Qt
CPAN shell
perl -MCPAN -e shell install Qt
For more information on module installation, please visit the detailed CPAN module installation guide.