Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMenu is missing
Forum Updated to NodeBB v4.3 + New Features

QMenu is missing

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 204 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    I have one instance of QMenu created long time ago
    Now, I'm trying to implement it to another project but cant find it in Widget Box in Qt Designer
    Tried different laptops, Widget type set to MainWindow
    Please guide me how to debug this

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Menu bars only exist in QMainWindow in Designer. If you are working with a QWidget-based form then you will need to code inserting a QMenuBar and Qmenu items into a layout.

      As it says in the docs, "Menus are added to the menu bar by modifying the Type Here placeholders. One of these is always present for editing purposes, and will not be displayed in the preview or in the finished window."
      2d478ef7-996a-4b06-9f80-d6a1deb8fef2-image.png
      or
      bafdbf89-52e4-4864-9e0b-92390de5c083-image.png

      1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on

      • Login

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