05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

GVWidget.h
Go to the documentation of this file.
1
7 #ifndef GVWIDGET_H
8 #define GVWIDGET_H
9
10 #include <QGraphicsView>
11 #include <QMouseEvent>
12 #include <QWheelEvent>
13 #include <QPoint>
14
15 class GVWidget: public QGraphicsView
16 {
17 Q_OBJECT
18
19 public:
20
21 GVWidget(QWidget *parent)
22 : QGraphicsView(parent)
23 {
24
25 }
26
27 QPointF widget_to_scene(QPoint point);
28
29 public slots:
30 void mousePressEvent(QMouseEvent* event);
31 void mouseReleaseEvent(QMouseEvent* event);
32 void mouseMoveEvent(QMouseEvent* event);
33 //void wheelEvent(QWheelEvent* event);
34
35 signals:
36 void left_press(QPointF point);
37 void left_release(QPointF point);
38 void clicked(int x, int y); // backwards compatibility
39 void right_press(QPointF point);
40 void right_release(QPointF point);
41 void mouse_move(QPointF point);
42
43 };
44
45
46 #endif // MOCAP_H
GVWidget
Definition: GVWidget.h:15
GVWidget::clicked
void clicked(int x, int y)
GVWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
GVWidget::mouse_move
void mouse_move(QPointF point)
GVWidget::widget_to_scene
QPointF widget_to_scene(QPoint point)
GVWidget::mousePressEvent
void mousePressEvent(QMouseEvent *event)
GVWidget::GVWidget
GVWidget(QWidget *parent)
Definition: GVWidget.h:21
GVWidget::right_release
void right_release(QPointF point)
GVWidget::left_release
void left_release(QPointF point)
GVWidget::right_press
void right_press(QPointF point)
GVWidget::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
GVWidget::left_press
void left_press(QPointF point)