Dynamically adding a Menu to a MenuBar
I'm having trouble trying to dynamically populate a MenuBar in QML.
I understand how to use the Instantiator to dynamically add content to a Menu but this doesn't apply to MenuBar. MenuBar only accepts Menu Items as inner elements and i can't find a way to insert something in its menus property.
The objective is to drive the MenuBar of my application with a model so that the user or some application plugin can add a new menu to the menubar.