[PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Mads Kofod Hansen
Hi all My question is if it is possible to create a QGraphicsView in a MainWindow? I have a QMainWindow with a menu bar and I want to create a QGraphicsView below the menu bar. I have made a simple example: import sys from PyQt4 import QtGui, QtCore class MainWindow(QtGui.QMainWindow):

Re: [PyQt] creating a QgraphicsView in MainWindow

2009-02-26 Thread Mads Kofod Hansen
wrote: On Thu, 26 Feb 2009 02:16:41 -0800 (PST), Mads Kofod Hansen kofo...@yahoo.com wrote: I have a QMainWindow with a menu bar and I want to create a QGraphicsView below the menu bar. But this only displays the MainWindow with a menubar. How do I create the GraphicsView in the MainWindow