Qt 4.4.1
quote from the Assistant:
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
Qt Code:
  1. #include <QtGui>
  2. #include "scenetest.h"
  4. sceneTest::sceneTest(QWidget *parent, Qt::WFlags flags)
  5. : QMainWindow(parent, flags)
  6. {
  7. ui.setupUi(this);
  8. Scene = new QGraphicsScene(0,0,500,500,this);
  9. ui.View->setScene(Scene);
  10. Scene->addItem(new QGraphicsLineItem(200,200,300,300));
  11. Scene->addItem(new QGraphicsLineItem(300,300,400,200));
  12. foreach(QGraphicsItem* item,Scene->items())
  13. item->setFlags(QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemIsSelectable);
  14. ui.View->setDragMode(QGraphicsView::RubberBandDrag);
  15. }
To copy to clipboard, switch view to plain text mode 
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.