[PyQt] Simple QGV crash

Phil Thompson phil at riverbankcomputing.com
Tue Dec 22 16:54:30 GMT 2009


On Mon, 21 Dec 2009 18:18:11 -0800 (PST), Jason H <scorp1us at yahoo.com>
wrote:
> This used to work, but my latest sip&pyqt snapshots crashes.

Which would they be?

> import sys
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
> 
> class Main(QGraphicsView):
>     def __init__(self,  parent=None):
>         QGraphicsView.__init__(self, parent)
>         pass
>     
> if __name__=="__main__":
>     a = QApplication(sys.argv)
>     m= QGraphicsView()
>     m.show()
>     a.exec_()

Works fine for me.

Phil


More information about the PyQt mailing list