void createMenuItem(string parentName,string name,string caption,string action,string accel,string icon,string[] classes=QStringList())

Load one menu or toolbar item and insert it into parent menu or toolbar. If the name is "" or "-", separator is inserted on place of the item and rest of parameters are ignored. If inserting item into toolbar and the name will match one of the special items, the special item will be inserted in toolbar and rest of the parameters are ignored. Items that are loaded from settings have theyir name equal to the key in setting they are stored under.
parentNameName of parent menu/toolbar. If NULL/empty, main menubar is the parent
name Name of the item. Must be unique.
caption Caption of item
action Script to execute when the item is selected
accel Keyboard accelerator
icon Name of icon to use
classes List of item classes