I have QGraphicsView on my form, and QGraphicsScene attached to it.
On QGraphicsScene I have QPixmap item, and when I call pixmap->setPos(0, 0) I'd like pixmap to move exactly to left top corner of QGraphicsView.
To reach such an effect QGraphicsScene must be expanded at whole QGraphicsView.
In other words, QGraphicsScene's width and height must be the same as QGraphicsView's.
How can I do it?
I searched for function like QGraphicsScene::setAutoExpanding but I haven't found anything.
Thanks in advance!
Bookmarks