Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Dynamically adding a Menu to a MenuBar
QtWS25 Last Chance

Dynamically adding a Menu to a MenuBar

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlmenubar
1 Posts 1 Posters 973 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Smatcher
    wrote on last edited by Smatcher
    #1

    Hello everyone.

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved