Interface class for plugins which have to react on keyboard events. More...
|virtual void||slotKeyEvent (QKeyEvent *)|
|Key Event from Main App. |
|virtual void||slotKeyReleaseEvent (QKeyEvent *)|
|Key Release Event from Main App. |
|virtual void||registerKey (int, Qt::KeyboardModifiers, QString, bool=false)|
|Register a key-combination for your plugin. |
Public Member Functions
Interface class for plugins which have to react on keyboard events.
Using this interface you can react on key events. You first have to register a key (or key combination). For each registered key you will receive a keyEvent when the key was pressed and a keyReleaseEvent when the key was released.
See our tutorial Implementing mouse and keyboard interaction for an example of how to use mouse and keyboard events within a plugin.
|virtual void KeyInterface::registerKey||(||int||,|
|bool|| = |
Register a key-combination for your plugin.
To obtain key events from the viewer for a certain key-combination, you have to register that combination first
|_key||the key that should be registered|
|_modifiers||the keyboard modifiers|
|_description||a short description about the functionality|
|_multiUse||can the key additionally be registered by another plugin|
Reimplemented in MouseAndKeyPlugin.
|virtual void KeyInterface::slotKeyEvent||(||QKeyEvent *||)||
|virtual void KeyInterface::slotKeyReleaseEvent||(||QKeyEvent *||)||