dennis81
27th September 2011, 10:12
Hi,
I am using a QGraphicsScene with some moveable QGraphicsItems. The scene is bigger than the view and screen.
How can I enable autoscrolling of the view when the user moves an item near the screen border???
Calling QGraphicsView::ensureVisible() in the MouseMoveEvent is not usefull solution, because it triggers always a vertical and horizontal scrollEvent.
Even the user moves the mouse strictly horizontal.
greets,
Dennis
I am using a QGraphicsScene with some moveable QGraphicsItems. The scene is bigger than the view and screen.
How can I enable autoscrolling of the view when the user moves an item near the screen border???
Calling QGraphicsView::ensureVisible() in the MouseMoveEvent is not usefull solution, because it triggers always a vertical and horizontal scrollEvent.
Even the user moves the mouse strictly horizontal.
greets,
Dennis