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. How to add menu in MenuBar
Forum Update on Monday, May 27th 2025

How to add menu in MenuBar

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqtquickcontrol
2 Posts 2 Posters 878 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.
  • e53871eb35312d29ea3b6478e9489038E Offline
    e53871eb35312d29ea3b6478e9489038E Offline
    e53871eb35312d29ea3b6478e9489038
    wrote on last edited by
    #1

    Is there way to add Menu in MenuBar from C++ code (ie dynamically, on fly)?
    Or the only way to achieve this is to hard code all menus in qml file?

    M 1 Reply Last reply
    0
    • e53871eb35312d29ea3b6478e9489038E e53871eb35312d29ea3b6478e9489038

      Is there way to add Menu in MenuBar from C++ code (ie dynamically, on fly)?
      Or the only way to achieve this is to hard code all menus in qml file?

      M Offline
      M Offline
      medyakovvit
      wrote on last edited by
      #2

      @e53871eb35312d29ea3b6478e9489038
      Maybe you can consider the possibility to create Menu dynamically from qml? For example createComponent.

      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