[PyQt] fitInView problem

Pierre Barbier de Reuille pierre.barbierdereuille at gmail.com
Thu Nov 27 09:30:39 GMT 2008


On Thu, Nov 27, 2008 at 6:05 AM, Oguz Yarimtepe <comp.ogz at gmail.com> wrote:
> rect=root.graphicsView.sceneRect()
> root.graphicsView.setSceneRect(rect)

I believe this is your problem. These lines do ....  nothing ! You are
reading the graphics view rectangle and setting up the same.
You should probably do something like:

rect = pixmap.rect() # can't remember the exact function here
root.graphicsView.setSceneRect(rect)

-- 
Barbier de Reuille Pierre


More information about the PyQt mailing list