[PyQt] QGrahicsView and event issue

David Boddie dboddie at trolltech.com
Fri Nov 7 17:24:21 GMT 2008


On Fri Nov 7 15:36:49 GMT 2008, Oguz Yarimtepe wrote:

> I was trying to implement a simple PDF reader. The problem about the GUI
> is, when i choose the file from file dialog it shows the rendered image
> at a new window, not inside the QGraphicsView widget. If i solve it i
> think the event part will start to work in the right way. I read the
> documents and tried different ways but couldn't find a solution. Will be
> happy if someone help.

In your Main class, you are creating a new instance of a graphics view
rather than using the one you set up in your pyuic4-created class:

29          root.graphicsView=GraphicsView()

Maybe leave this assignment out.

David


More information about the PyQt mailing list