[PyQt] QMainWindow bug?
phil at riverbankcomputing.com
Thu Jan 20 11:15:28 GMT 2011
On Tue, 18 Jan 2011 19:32:57 +0000, Vicent Mas <uvemas at gmail.com> wrote:
> 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.
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.
More information about the PyQt