I want to have a QGraphicsView that never scrolls automatically.
Similar: Basically, my question is identical to http://developer.qt.nokia.com/forums/viewthread/2220 , but that thread didn't receive an answer.
What I have tried so far:
- Within showEvent() and resizeEvent(), I do ui->graphicsView->fitInView(...), which works fine as long as items do not overshoot the screen-rectangle
- I've also tried manipulating the view transform, but apart from scaling it's coefficients never change, so this was fruitless, too
- Diabling scroll bar appearance does not help, too
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
. This solution breaks zooming under the mouse. – Hottentot