![]() |
Carousel
|
With the IInputReceiver interface you can define what occurs on events such as mouse move, mouse button press/release, keyboard key press/release, double-click, and right click (context menu). More...
#include <IInputReceiver.h>
Inherited by ITool.
Public Member Functions | |
virtual bool | onContextMenu (QContextMenuEvent *event)=0 |
virtual void | onDoubleClick (QMouseEvent *event)=0 |
virtual void | onKeyDown (QKeyEvent *event)=0 |
virtual void | onKeyUp (QKeyEvent *event)=0 |
virtual void | onMouseDown (QMouseEvent *event)=0 |
virtual void | onMouseMove (QMouseEvent *event)=0 |
virtual void | onMouseUp (QMouseEvent *event)=0 |
With the IInputReceiver interface you can define what occurs on events such as mouse move, mouse button press/release, keyboard key press/release, double-click, and right click (context menu).
Use IInputDispatcher to obtain user input events.
|
pure virtual |
Context menu event occured at the given in event location.
When create a custom receiver, write code to display a custom context menu the right mouse button is pressed.
If your receiver displays a custom context menu, it should let the application know that it handled the onContextMenu event by returning true. If you don't do this, the standard context menu will be displayed.
Implemented in ToolBase.
|
pure virtual |
Occurs when a mouse button is double clicked.
Implemented in ToolBase.
|
pure virtual |
Occurs when a key on the keyboard is pressed.
Implemented in ToolBase.
|
pure virtual |
Occurs when a key on the keyboard is released.
Implemented in ToolBase.
|
pure virtual |
Occurs when a mouse button is pressed.
Implemented in ToolBase.
|
pure virtual |
Occurs when the mouse is moved.
Implemented in ToolBase.
|
pure virtual |
Occurs when a mouse button is released.
Implemented in ToolBase.