Scroll QGraphicsObject content with QScroller
I have a
QGraphicsObjectderived class with a certain bounding box.
It has many items outside that bounding box.
It has a QScroller pointer member variable.
setCacheMode(QGraphicsItem::ItemCoordinateCache); scroller = QScroller::scroller(this); scroller->grabGesture(this, QScroller::LeftMouseButtonGesture);
but scrolling does not work at all.
How can I scroll content Items with QScroller?