Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Scroll QGraphicsObject content with QScroller
MajidKamali last edited by
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?