On Tue, 18 Jan 2011 19:32:57 +0000, Vicent Mas <uve...@gmail.com> wrote: > Hi, > > it seems there is a bug in QMainWindow.createPopupMenu. In my system > (Windows XP, Python 2.6, PyQt 4.8.2 installed using the Windows > installer), when I run the attached script and close the created > QMainWindow, an error dialog appears saying that python.exe has found > a problem and must be closed. > > Could someone confirm this behavior? Thanks. > > Vicent
It will be fixed in tonight's snapshot. The Qt docs say that ownership of the menu is transfered to the caller. However this is misleading as it gives the menu a parent. The change means that it you want to delete the menu then you will need to give it a None parent first. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt