JoystickControlWidgetQGraphicsView Class Reference

Provides the coordinates of mouse events through signals. More...

#include <ArmarXGui/libraries/ArmarXGuiBase/widgets/JoystickControlWidget.h>

+ Inheritance diagram for JoystickControlWidgetQGraphicsView:

Signals

void positionChanged (QPointF)
 Sends the mouse position on press or move in the scene coordinates.
 
void pressed ()
 Emitted when the mouse was pressed.
 
void released ()
 Emitted when the mouse was released.
 

Public Member Functions

 JoystickControlWidgetQGraphicsView (QGraphicsScene *scene, QWidget *parent=nullptr)
 
void mouseMoveEvent (QMouseEvent *event) override
 Passes the mapped mouse coordinates of the event through the signal positionChanged.
 
void mousePressEvent (QMouseEvent *event) override
 Passes the mapped mouse coordinates of the event through the signal positionChanged.
 
void mouseReleaseEvent (QMouseEvent *) override
 Passes (0;0) through the signal positionChanged.
 
 ~JoystickControlWidgetQGraphicsView () override
 

Detailed Description

Provides the coordinates of mouse events through signals.

Used in JoystickControlWidget.

Constructor & Destructor Documentation

◆ JoystickControlWidgetQGraphicsView()

JoystickControlWidgetQGraphicsView ( QGraphicsScene * scene,
QWidget * parent = nullptr )

◆ ~JoystickControlWidgetQGraphicsView()

~JoystickControlWidgetQGraphicsView ( )
overridedefault

Member Function Documentation

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent * event)
override

Passes the mapped mouse coordinates of the event through the signal positionChanged.

Parameters
eventContains the coordinates

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent * event)
override

Passes the mapped mouse coordinates of the event through the signal positionChanged.

Parameters
eventContains the coordinates

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent * )
override

Passes (0;0) through the signal positionChanged.

◆ positionChanged

void positionChanged ( QPointF )
signal

Sends the mouse position on press or move in the scene coordinates.

On mouse release (0;0) is send.

◆ pressed

void pressed ( )
signal

Emitted when the mouse was pressed.

◆ released

void released ( )
signal

Emitted when the mouse was released.


The documentation for this class was generated from the following files: