QGraphicsView with mouse tracking. More...
#include <qmousetrackingview.h>
Signals | |
void | mouseDragged (Qt::ArrowType) |
void | mouseDoubleClick () |
Public Member Functions | |
QMouseTrackingView (QGraphicsScene *scene, QWidget *parent) | |
The default constructor. | |
void | reset () |
Reset mouse tracking. |
QGraphicsView with mouse tracking.
This class implements mouse tracking on QGraphicsView. It defines moving direction and double clicking.
QMouseTrackingView::QMouseTrackingView | ( | QGraphicsScene * | scene, | |
QWidget * | parent | |||
) |
The default constructor.
scene | The pointer to used scene. | |
parent | The pointer to parent widget. |
void QMouseTrackingView::reset | ( | ) |
Reset mouse tracking.
Ereases previous mouse moving.