[PyKDE] PyQt4 Menu Seg Fault

Doug Bell dougb at bellz.org
Fri Jan 13 02:02:38 GMT 2006

Hi -

Menus in PyQt4 work fine when a separate action is created and assigned
to a menu item, but there is a problem when defining the action within
an overloaded QMenu.addAction() method.  The menu gets created but then
gives a segmentation fault when the menu item is actuated.

I've attached a short example that illustrates the problem.  The first
item in the context menu (from a separate QAction) works fine, but the
second one (using the internal action) causes a seg fault.

I'm using the 20060111 snapshot.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: menutest.py
Type: text/x-python
Size: 844 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060113/52298cb8/menutest.py

More information about the PyQt mailing list