[PyQt] QMainWindow bug?
uvemas at gmail.com
Thu Jan 20 11:32:39 GMT 2011
2011/1/20 Phil Thompson <phil at riverbankcomputing.com>:
> 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.
Great. Thanks a lot.
> 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.
OK, I understand it.
Share what you know, learn what you don't.
More information about the PyQt