On Wednesday 04 June 2003 2:26 pm, John Marshall wrote: > On Tue, 2003-06-03 at 14:52, John Marshall wrote: > > Hi, > > > > I am trying to use the QCustomMenuItem class under > > Python and am getting "Memory fault" as soon as I try > > to bring up the popup menu it is in. > > While looking at the PyQt stuff I noticed that the > menu.cpp example was converted to menu.py BUT the > MyMenuItem class, which subclasses QCustomMenuItem, > was not used (commented out). When I tried to use > it (uncommented it and modified the code to actually > use for the bold and underline menu items), it did > not work. > > My conclusion is that QCustomMenuItem is currently > not supported, although it is wrapped. Can someone > confirm this? Has anyone ever used the QCustomMenuItem > under PyQt?
It turns out to be a bug in QMenuData.insertItem() which will be fixed in tonight's snapshot. Also included is an updated menu.py example that matches the latest C++ version including a working example of QCustomMenuItem. Phil _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
