Home > Mobile >  In the Qt DragMode, ScrollHandDrag how to realize the right drag drag model
In the Qt DragMode, ScrollHandDrag how to realize the right drag drag model

Time:01-06

Qt provides three in QGraphicView drag model, respectively is:
QGraphicsView: : NoDrag: ignore mouse events, can not drag,
QGraphicsView: : ScrollHandDrag: the cursor into the shape of the hand, can drag moving scene,
QGraphicsView: : RubberBandDrag: select the region, select an area of all graphics,
There is a problem now is that the drag effect of ScrollHandDrag is long press the left key drag, but I want to realize the right by dragging the how to write, like right click and drag the picture that in the drawing software, think a day did not think of solution, presence of big aid once,,,
  •  Tags:  
  • Qt
  • Related