Dear list,

I could not get the dragging working, using
setDragMode(QGraphicsView::ScrollHandDrag)
on a QGraphicsView.

When grabbed, the visible rect does not respond in following the mouse pointer,
but jumps weirdly. Jumping also continuous if you stop moving the mouse (not
releasing the left button though). Sometimes the app segvs thereafter. Moving using the scrollbars in the view works. This happens also when using a QGLWidget as a viewport instead of the default.

This is on fc8 with nvidia drivers
qt-x11-opensource-src-4.4.0-beta1 in /opt/  (installed via configure --prefix).

It can be reproduced easily by changing in

/qt-x11-opensource-src-4.4.0-beta1/demos/chip
 line 59 in view.cpp containing
graphicsView->setDragMode(QGraphicsView::RubberBandDrag);
to
graphicsView->setDragMode(QGraphicsView::ScrollHandDrag);

and then try to grab on an "empty" space (=where no QGraphicsItem take the 
events).

Confirmed also on another linux-64 (fc8).

I would have expected the view to move with the mouse pointer, when grabbed and the dragged.

Did I overlook something?

Thanks for your ideas,

        Georg

To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]

Reply via email to