QGraphicsView DragMode error
Qt 4.4.1
quote from the Assistant:
Quote:
dragMode : DragMode
This property holds the behavior for dragging the mouse over the scene while the left mouse button is pressed.
and here is my code
Code:
#include <QtGui>
#include "scenetest.h"
sceneTest
::sceneTest(QWidget *parent, Qt
::WFlags flags
){
ui.setupUi(this);
ui.View->setScene(Scene);
item
->setFlags
(QGraphicsItem::ItemIsMovable|QGraphicsItem
::ItemIsSelectable);
}
So why do I get that RubberBand even if I drag the mouse with Mid or right button pressed?
btw with ScrollHandDrag mode I get the expected behavior - only with left button pressed the view scrolls.