[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] fitInView problem
From: "Pierre Barbier de Reuille" <pierre.barbierdereuille () gmail ! com>
Date: 2008-11-27 9:30:39
Message-ID: bb2c785c0811270130k38ce4e37m558a9dacc4ee62ec () mail ! gmail ! com
[Download RAW message or body]
On Thu, Nov 27, 2008 at 6:05 AM, Oguz Yarimtepe <comp.ogz@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
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic