[pyqt] How to copy the content of a QPopupMenu ?

kobayashi at netcourrier.com kobayashi at netcourrier.com
Wed Apr 5 07:50:49 EDT 2006


Dear all,

For a particuliar case, I need to copy all the items of
an existing menu (including the separators and sub-menus)
in a new empty one ... Does someone knows how to do that ?
I've tried :
item = menu_orig.findItem(item_id)
menu_new.insertItem(item, item_id)
but it fails with :
TypeError: argument 1 of QMenuData.insertItem() has an invalid type

Thanks in advance,

Cheers,

                 K.




More information about the Python-list mailing list