Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Placing a QMenuBar within the Designer
Forum Updated to NodeBB v4.3 + New Features

Placing a QMenuBar within the Designer

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 178 Views 2 Watching
  • 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.
  • Dummie1138D Offline
    Dummie1138D Offline
    Dummie1138
    wrote on last edited by
    #1

    Hi. I'm trying to build a new class, basically a menu bar. I have set up a new Qt designer form class (with the ui file), but I'm wondering where, in the widget lists, is QMenuBar. Is QMenuBar not available within the designer?
    fe87eb69-78eb-48ce-aba6-d1c48a1ae998-image.png
    I know a QMenuBar can be implemented within the cpp file but I would like to try implementing it on designer first.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You can't make a top level menu bar in the designer. It supports menu bars only on QMainWindow.

      Menu bars are just containers for actions. There's not much to design in them anyway. Unless you're willing to make a custom designer plugin you'll have to make your class in code.

      1 Reply Last reply
      1

      • Login

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