[PyQt] QMainWindow bug?

Antonio Valentino antonio.valentino at tiscali.it
Wed Jan 19 09:21:00 GMT 2011


Hi Vicent,

Il giorno Tue, 18 Jan 2011 19:32:57 +0000
Vicent Mas <uvemas at gmail.com> ha scritto:

> 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.

Segmentation fault on:

GNU/Linux x86_64 2.6.35 (Ubuntu 10.10)
Python 2.6.6
PyQt4 4.7.4
Qt4 4.7.0


No problem if I add

del toolbars_submenu

at the very and of the program
It seems that having around references to objects that are child of the
mainwin triggers the problem.

ciao

-- 
Antonio Valentino


More information about the PyQt mailing list