Isn't it the default behaviour when using QGraphicsView::RubberBandDrag?