PDA

View Full Version : QGraphicsView resize and zoom



giostau
29th May 2013, 14:03
Hi to all!

I am having an issue with a graphicsview resize and zoom!

using ui.graphicsView->resize(event->size()) i can resize my view when i resize the window,
and the scene resizes ok.

The problems start with zooming!
when i zoom-in or out, although everything seems to zoom ok,
the scene/view (i am not sure which one) is getting out of center!
(zooming in transforms the scene/view a bit to the left, and zooming out to the left)

I have tried some things using resizeAncors and centerOn
but i had no luck!

Also, scroll bars are not appearing...

Any one has any idea?
Thank you in advance!