The soqtkeyboard class is the keyboard input device abstraction. the soqtkeyboard class is the glue between native keyboard handling and keyboard interaction with the inventor scenegraph.
#include <Inventor/Qt/devices/SoQtKeyboard.h>
Inherits SoQtDevice.
enum Events { KEY_PRESS = 0x01, KEY_RELEASE = 0x02, ALL_EVENTS = KEY_PRESS | KEY_RELEASE }
SoQtKeyboard (int eventmask=ALL_EVENTS)
virtual ~SoQtKeyboard (void)
virtual void enable (QWidget *widget, SoQtEventHandler *handler, void *closure)
virtual void disable (QWidget *widget, SoQtEventHandler *handler, void *closure)
virtual const SoEvent * translateEvent (QEvent *event)
class SoQtKeyboardP
class SoGuiKeyboardP
The SoQtKeyboard class is the keyboard input device abstraction.
The SoQtKeyboard class is the glue between native keyboard handling and keyboard interaction with the Inventor scenegraph.
All components derived from the SoQtRenderArea have got an SoQtKeyboard device attached by default.
Enumeration over supported event types.
Enumerator
KEY_PRESS
Maskbit for a keyboard button press event.
KEY_RELEASE
Maskbit for a keyboard button release event.
ALL_EVENTS
Combined bitmask for all possible events.
Constructor. The mask specifies which keyboard-related events to handle. Others will just be ignored.
Destructor.
This method will enable the device for the widget.
handler is invoked with the closure argument when an event occur in widget.
Implements SoQtDevice.
This method will disable the handler for the device.
Implements SoQtDevice.
This method translates from native events to Open Inventor SoEvent events.
Implements SoQtDevice.
References SoQtDevice::getLastEventPosition(), KEY_PRESS, KEY_RELEASE, and SoQtDevice::setEventPosition().
Generated automatically by Doxygen for SoQt from the source code.