Is your scene bigger than your view? If not, translating the view won't change anything.
Is your scene bigger than your view? If not, translating the view won't change anything.
I see what you mean by that now. How do I translate the origin of my scene in a view so that it's somewhere other than dead center?
Also - do you know if I can turn off that auto scroll when I add items close to the edge of the view?
Thanks.
The view inherits QAbstractScrollArea. Dig out the rest yourself
To anchor the scene to something else than the centre of the view (if it is smaller than the view) use the QGraphicsView::alignment property.
Thanks. That's a good starting point.
Bookmarks