Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QWSServer::KeyboardFilter Class Reference
[QtGui module]

The KeyboardFilter class provides a global keyboard event filter. More...

#include <QWSServer>

Public Functions


Detailed Description

The KeyboardFilter class provides a global keyboard event filter.

Note that this class is only available in Qtopia Core.

KeyboardFilter is used to implement a global, low-level filter on key events in the Qtopia Core server application; this can be used to implement things like APM (advanced power management) suspended from a button without having to filter for it in all applications.

See also QWSServer, QWSInputMethod, and Character Input.


Member Function Documentation

KeyboardFilter::~KeyboardFilter ()   [virtual]

Destroys the keyboard filter.

bool KeyboardFilter::filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )   [pure virtual]

Returns true if the specified key event should be filtered, stopping the event from being processed any further; otherwise returns false.

ParameterDescription
unicodeThe unicode value of the key.
keycodeThe Qt keycode value as defined by the Qt::Key enum.
modifiersAn OR combination of Qt::KeyboardModifier values, indicating whether Shift/Alt/Ctrl keys are pressed.
isPressTrue if the event is a key press event; otherwise false.
autoRepeatTrue if the event is caused by auto repeat (i.e. the user has held the key down and this is the second or subsequent key event being sent); otherwise false.


Copyright © 2006 Trolltech Trademarks
Qt 4.1.3